Exercises & activities from the go workshop provided by Packt: https://courses.packtpub.com/courses/go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
182 B

  1. package main
  2. import "fmt"
  3. func main() {
  4. var a int8 = 125
  5. var b uint8 = 253
  6. for i := 0; i < 5; i++ {
  7. a++
  8. b++
  9. fmt.Println(i, ")", "int8:", a, "uint8:", b)
  10. }
  11. }