func main()

in cmd/instrumentless_test/main.go [24:42]


func main() {

	if len(os.Args) < 3 {
		fmt.Fprintln(os.Stderr, "Not enough args")
		os.Exit(1)
	}

	event := os.Args[1]
	token := os.Args[2]

	coupon, err := instrumentless.GetCoupon(event, token)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}

	fmt.Printf("Got coupon: %s\n", coupon.URL)

}