diff options
Diffstat (limited to 'client/go/internal/slime/nix_value.go')
-rw-r--r-- | client/go/internal/slime/nix_value.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/client/go/internal/slime/nix_value.go b/client/go/internal/slime/nix_value.go new file mode 100644 index 00000000000..57da619b547 --- /dev/null +++ b/client/go/internal/slime/nix_value.go @@ -0,0 +1,22 @@ +// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Author: arnej + +package slime + +type NixValue struct { + valueBase + valid bool +} + +func (n *NixValue) Valid() bool { + return n.valid +} + +func (n *NixValue) Type() Type { + return NIX +} + +// actually constants: + +var ValidNix *NixValue = &NixValue{valid: true} +var InvalidNix *NixValue = &NixValue{valid: false} |