Section4.44
This commit is contained in:
16
Section4/aliases/main.go
Normal file
16
Section4/aliases/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var a uint8 = 10
|
||||
var b byte
|
||||
|
||||
b = a
|
||||
_ = b
|
||||
|
||||
type second = uint
|
||||
|
||||
var hour second = 3600
|
||||
fmt.Printf("Minutes in an hour: %d \n", hour/60)
|
||||
}
|
||||
Reference in New Issue
Block a user