This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
forge
mirror of
https://github.com/brettlangdon/forge.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
12
Wiki
Activity
Browse Source
add comments to value.go
pull/16/head
Brett Langdon
11 years ago
parent
155eed44c6
commit
2dd6060c65
1 changed files
with
14 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
{
}
Write
Preview
Loading…
Cancel
Save