From 2dd6060c65d0a59be398acb71cbfb095cbdd4c73 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 20 Jun 2015 16:24:21 -0400 Subject: [PATCH] add comments to value.go --- value.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/value.go b/value.go index 5fa969a..50c0f45 100644 --- a/value.go +++ b/value.go @@ -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{}