示例#1
0
func prompt() {
	fmt.Print("What would you like to know?\n")
	promptString := magnaio.ReadInput()
	fmt.Println(promptString)
	str := igniteconnect.FormatQuery(promptString, &theUser)
	igniteconnect.SendQuery(str)
}
示例#2
0
func intro() {
	fmt.Println("Who awakens me?")
	dataString := magnaio.ReadInput()
	//fmt.Println(dataString)
	theUser = MakeNewUser(dataString)
	fmt.Print("Hello " + theUser.Name + ". ")
}