diff options
author | Vincent Ambo <tazjin@google.com> | 2019-11-24T20·41+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-11-24T20·41+0000 |
commit | 473421dbb81fedbec7f1f6e788c813b5fe9f4604 (patch) | |
tree | 0d91784067fcd75cdae074276c9b744a48219360 /example/main.go | |
parent | 0fd74669229415907353563b3dbc2847d8a80942 (diff) |
feat(example): Demonstrate usage of x_defs flag to buildGo.program
Diffstat (limited to 'example/main.go')
-rw-r--r-- | example/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/main.go b/example/main.go index 1db1bb9e23e9..bbcedbff8726 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) } |