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.

18 lines
200 B

  1. package main
  2. import "fmt"
  3. var defaultOffset = 10
  4. func main() {
  5. offset := 5
  6. fmt.Println(offset)
  7. offset = 10
  8. fmt.Println(offset)
  9. offset = offset + defaultOffset
  10. fmt.Println(offset)
  11. }