Initial commit
This commit is contained in:
25
10-constants/04-iota/02-with-iota/main.go
Normal file
25
10-constants/04-iota/02-with-iota/main.go
Normal file
@ -0,0 +1,25 @@
|
||||
// For more tutorials: https://blog.learngoprogramming.com
|
||||
//
|
||||
// Copyright © 2018 Inanc Gumus
|
||||
// Learn Go Programming Course
|
||||
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
//
|
||||
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
const (
|
||||
monday = iota
|
||||
tuesday
|
||||
wednesday
|
||||
thursday
|
||||
friday
|
||||
saturday
|
||||
sunday
|
||||
)
|
||||
|
||||
fmt.Println(monday, tuesday, wednesday, thursday, friday,
|
||||
saturday, sunday)
|
||||
}
|
Reference in New Issue
Block a user