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.

21 lines
252 B

  1. package main
  2. import "fmt"
  3. func getUsers() map[string]string {
  4. users := map[string]string{
  5. "305": "Sue",
  6. "204": "Bob",
  7. "631": "Jake",
  8. }
  9. users["073"] = "Tracy"
  10. return users
  11. }
  12. func main() {
  13. fmt.Println("Users:", getUsers())
  14. }