From 473421dbb81fedbec7f1f6e788c813b5fe9f4604 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 24 Nov 2019 20:41:29 +0000 Subject: feat(example): Demonstrate usage of x_defs flag to buildGo.program --- example/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example/main.go') diff --git a/example/main.go b/example/main.go index 1db1bb9e23..bbcedbff87 100644 --- a/example/main.go +++ b/example/main.go @@ -12,6 +12,8 @@ import ( "fmt" ) +var Flag string = "unsuccessfully" + func main() { thing := exampleproto.Thing{ Id: example.UUID(), @@ -19,4 +21,5 @@ func main() { } fmt.Printf("The thing is a %s with ID %q\n", thing.Id, thing.KindOfThing) + fmt.Printf("The flag has been %s set\n", Flag) } -- cgit 1.4.1