aboutsummaryrefslogtreecommitdiff
path: root/example/example.go
blob: 13b2b7d0b711d544c6daf6ec0b454526b0192a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
	"fmt"

	"git.kiefte.eu/lapingvino/prompt"
)

func main() {
	fmt.Print("Enter a string: ")
	s := prompt.MustRead[string]()
	fmt.Print("Now enter a complex number: ")
	c := prompt.MustRead[complex128]()
	fmt.Println(s, c)
}