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.

19 lines
236 B

  1. package main
  2. import (
  3. "fmt"
  4. "time"
  5. )
  6. func getConfig() (bool, string, time.Time) {
  7. return false, "info", time.Now()
  8. }
  9. func main() {
  10. Debug, LogLevel, startUpTime := getConfig()
  11. fmt.Println(Debug, LogLevel, startUpTime)
  12. }