logical/framework: adding a new duration type to convert to seconds

This commit is contained in:
Armon Dadgar
2015-06-17 15:56:26 -07:00
parent 0bd806a586
commit dcb45874bf
5 changed files with 98 additions and 7 deletions

View File

@@ -373,6 +373,8 @@ func (t FieldType) Zero() interface{} {
return false
case TypeMap:
return map[string]interface{}{}
case TypeDurationSecond:
return 0
default:
panic("unknown type: " + t.String())
}