@@ -27,14 +27,16 @@ Application programmers then simply deal with enumeration values in form of
27
27
uints (or ints, _ erm_ , anything that satisfies ` constraints.Integer ` s),
28
28
liberated from parsing strings and validating enumeration flags.
29
29
30
+ For devcontainer instructions, please see the [ section "DevContainer"
31
+ below] ( #devcontainer ) .
32
+
30
33
## Alternatives
31
34
32
35
In case you are just interested in string-based one-of-a-set flags, then the
33
36
following packages offer you a minimalist approach:
34
37
35
38
- [ hashicorp/packer/helper/enumflag] ( https://godoc.org/github.com/hashicorp/packer/helper/enumflag )
36
39
really is a reduced-to-the-max version without any whistles and bells.
37
-
38
40
- [ creachadair/goflags/enumflag] ( https://godoc.org/github.com/creachadair/goflags/enumflag )
39
41
has a similar, but slightly more elaborate API with additional "indices" for
40
42
enumeration values.
@@ -346,16 +348,13 @@ func Example_slice() {
346
348
347
349
## DevContainer
348
350
349
- First method:
350
-
351
- 1 . in VSCode: Ctrl+Shift+P, "Dev Containers: Open Workspace in Container..."
352
- 2 . select ` enumflag.code-workspace ` and off you go...
353
-
354
- Second method:
351
+ > [ !CAUTION] Do ** not** use VSCode's "~~ Dev Containers: Clone Repository in
352
+ > Container Volume~~ " command, as it is utterly broken by design, ignoring
353
+ > ` .devcontainer/devcontainer.json ` .
355
354
356
- 1 . In VSCode: Ctrl+Shift+P, "Dev Containers: Clone Repository in Container Volume..."
357
- 2 . select "Github "
358
- 3 . enter "thediveo/ enumflag" and off you go...
355
+ 1 . ` git clone https://github.com/thediveo/enumflag `
356
+ 2 . in VSCode: Ctrl+Shift+P, "Dev Containers: Open Workspace in Container... "
357
+ 3 . select ` enumflag.code-workspace ` and off you go...
359
358
360
359
## VSCode Tasks
361
360
0 commit comments