MCPcopy
hub / github.com/go-task/task / Enum

Struct Enum

taskfile/ast/requires.go:27–30  ·  view source on GitHub ↗

Enum represents an enum constraint for a required variable. It can either be a static list of values or a reference to another variable.

Source from the content-addressed store, hash-verified

25// Enum represents an enum constraint for a required variable.
26// It can either be a static list of values or a reference to another variable.
27type Enum struct {
28 Ref string
29 Value []string
30}
31
32func (e *Enum) DeepCopy() *Enum {
33 if e == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected