main.go 329 B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "fmt"
  4. "os"
  5. "os/user"
  6. "code.osinet.fr/fgm/waiig15/repl"
  7. )
  8. func main() {
  9. user, err := user.Current()
  10. if err != nil {
  11. panic(err)
  12. }
  13. fmt.Printf("Hello %s! This is the Monkey programming language!\n",
  14. user.Username)
  15. fmt.Printf("Feel free to type in commands\n")
  16. repl.Start(os.Stdin, os.Stdout)
  17. }