20 lines
324 B
Go
20 lines
324 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"os/user"
|
|
|
|
"gitlab.com/Tyrel/monkey/repl"
|
|
)
|
|
|
|
func main() {
|
|
user, err := user.Current()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
fmt.Printf("Hello %s! This is the Monkey programming language!\n", user.Username)
|
|
fmt.Printf("Feel free to type in commands\n")
|
|
repl.Start(os.Stdin, os.Stdout)
|
|
}
|