File: main.go

package info (click to toggle)
golang-github-liamg-clinch 1.5.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,576 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
	"fmt"

	"github.com/liamg/clinch/prompt"
)

func main() {
	input := prompt.EnterInput("Enter your name: ")
	fmt.Printf("You entered '%s'\n", input)

	searchEngineUrl := prompt.EnterInputWithDefault("Set search engine url", "https://www.google.com?q=")
	fmt.Printf("Search engine URL set to '%s'\n", searchEngineUrl)
}