Browse Source

add comments to value.go

pull/16/head
Brett Langdon 11 years ago
parent
commit
2dd6060c65
1 changed files with 14 additions and 2 deletions
  1. +14
    -2
      value.go

+ 14
- 2
value.go View File

@ -1,20 +1,31 @@
package forge
// ValueType is an int type for representing the types of values forge can handle
type ValueType int
const (
// UNKNOWN ValueType
UNKNOWN ValueType = iota
// Primative values
primativesStart
// BOOLEAN ValueType
BOOLEAN
// FLOAT ValueType
FLOAT
// INTEGER ValueType
INTEGER
// NULL ValueType
NULL
// STRING ValueType
STRING
primativesDnd
// Complex values
complexStart
// REFERENCE ValueType
REFERENCE
// SECTION ValueType
SECTION
complexEnd
)
var valueTypes = [...]string{
@ -41,6 +52,7 @@ func (valueType ValueType) String() string {
return str
}
// Value is the base interface for Primative and Section data types
type Value interface {
GetType() ValueType
GetValue() interface{}


Loading…
Cancel
Save