mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
21 lines
342 B
Go
21 lines
342 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
"os/user"
|
||
|
|
||
|
"gopkg.in/kataras/iris.v6/_future/ipel/repl"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
user, err := user.Current()
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
fmt.Printf("Hello %s! This is the Iris Path Expression Language!\n",
|
||
|
user.Username)
|
||
|
fmt.Printf("Feel free to type in commands\n")
|
||
|
repl.Start(os.Stdin, os.Stdout)
|
||
|
}
|