INNER CODE UNIT · Go
main
kluctl/kluctl · internal/ipfs-exchange-info/main.go:52
func main() {
//logging.SetLogLevel("*", "INFO")
err := ParseFlags()
if err != nil {
panic(err)
}
if topicFlag == "test" {
reader := bufio.NewReader(os.Stdin)
fmt.Print("Enter num: ")
text, _ := reader.ReadString('\n')
topicFlag = "my-test-topic-" + strings.TrimSpace(text)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
defer cancel()