Files
gointerpreter/main.go
T
2024-03-17 23:09:12 +01:00

20 lines
308 B
Go

package main
import (
"fmt"
"gointerpreter/repl"
"os"
"os/user"
)
func main() {
user, err := user.Current()
if err != nil {
panic(err)
}
fmt.Printf("Hello %s! This is the gointerpreter programming language!\n", user.Username)
fmt.Printf("Type in commands\n")
repl.Start(os.Stdin, os.Stdout)
}