MCPcopy
hub / github.com/hashicorp/hcl / Set

Method Set

cmd/hcldec/vars.go:70–73  ·  view source on GitHub ↗
(new string)

Source from the content-addressed store, hash-verified

68}
69
70func (vs *varSpecs) Set(new string) error {
71 *vs = append(*vs, new)
72 return nil
73}
74
75func (vs *varSpecs) Type() string {
76 return "json-or-file"

Callers 12

decodeBodyToStructFunction · 0.80
decodeBodyToMapFunction · 0.80
decodeBlockToValueFunction · 0.80
type_expr.goFile · 0.80
getTypeFunction · 0.80
TestGetTypeFunction · 0.80
TestGetTypeDefaultsFunction · 0.80
TestTypeStringFunction · 0.80
TestDefaults_ApplyFunction · 0.80
TestExpandUnknownBodiesFunction · 0.80
impliedTypeMethod · 0.80

Calls

no outgoing calls

Tested by 6

TestGetTypeFunction · 0.64
TestGetTypeDefaultsFunction · 0.64
TestTypeStringFunction · 0.64
TestDefaults_ApplyFunction · 0.64
TestExpandUnknownBodiesFunction · 0.64