]> Cypherpunks repositories - gostls13.git/commit
flag: add FlagSet example
authorMiki Tebeka <miki@353solutions.com>
Wed, 6 Dec 2023 13:33:02 +0000 (13:33 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 15 Jul 2024 21:12:53 +0000 (21:12 +0000)
commit959b3fd4265d7e4efb18af454cd18799ed70b8fe
treec7c33813cd7a69c348fd7403c3a7a7fff8aab186
parent6948b4df8c5ec9f249960ea60dba6349d1975c0e
flag: add FlagSet example

Add an example for using FlagSet.

Fixes #36307

Change-Id: I0bf5805bd836a4f2e9632aafe22dc3eeb1164dcd
GitHub-Last-Rev: 79e53040cbc2658a71385b644107f8ea54132c99
GitHub-Pull-Request: golang/go#64443
Reviewed-on: https://go-review.googlesource.com/c/go/+/545736
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Christopher Taylor <ccmtaylor@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/flag/example_flagset_test.go [new file with mode: 0644]