Initial commit
This commit is contained in:
25
10-constants/04-iota/01-manually/main.go
Normal file
25
10-constants/04-iota/01-manually/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 = 0
|
||||
tuesday = 1
|
||||
wednesday = 2
|
||||
thursday = 3
|
||||
friday = 4
|
||||
saturday = 5
|
||||
sunday = 6
|
||||
)
|
||||
|
||||
fmt.Println(monday, tuesday, wednesday, thursday, friday,
|
||||
saturday, sunday)
|
||||
}
|
Reference in New Issue
Block a user