From 6110d50bdf8b10f176f1d3e45559092d230fdd62 Mon Sep 17 00:00:00 2001 From: sebastian Date: Mon, 2 Oct 2023 12:40:07 +0200 Subject: [PATCH] Section4.44 --- Section4/aliases/main.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Section4/aliases/main.go diff --git a/Section4/aliases/main.go b/Section4/aliases/main.go new file mode 100644 index 0000000..9e1560f --- /dev/null +++ b/Section4/aliases/main.go @@ -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) +}