blob: 57da619b5477a1d4bce517dcde72ac99fb19d605 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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}
|