diff --git a/frame.go b/frame.go index 6ad64a352..26d1bdf3f 100644 --- a/frame.go +++ b/frame.go @@ -328,7 +328,7 @@ func (f *Frame) applyOptions(opt FrameOptions) error { // Create new bsiGroup. bsig := &bsiGroup{ Name: f.name, - Type: FieldTypeInt, + Type: bsiGroupTypeInt, Min: opt.Min, Max: opt.Max, } @@ -1070,14 +1070,14 @@ func decodeFrameOptions(options *internal.FrameMeta) *FrameOptions { } } -// List of field data types. +// List of bsiGroup types. const ( - FieldTypeInt = "int" + bsiGroupTypeInt = "int" ) func IsValidFieldType(v string) bool { switch v { - case FieldTypeInt: + case bsiGroupTypeInt: return true default: return false diff --git a/frame_internal_test.go b/frame_internal_test.go index c52b76658..749e4e720 100644 --- a/frame_internal_test.go +++ b/frame_internal_test.go @@ -25,20 +25,20 @@ import ( func TestField_BaseValue(t *testing.T) { b0 := &bsiGroup{ Name: "b0", - Type: FieldTypeInt, + Type: bsiGroupTypeInt, Min: -100, Max: 900, } b1 := &bsiGroup{ Name: "b1", - Type: FieldTypeInt, + Type: bsiGroupTypeInt, Min: 0, Max: 1000, } b2 := &bsiGroup{ Name: "b2", - Type: FieldTypeInt, + Type: bsiGroupTypeInt, Min: 100, Max: 1100, }