import ( "github.com/couchbase/query/value" ) v := value.NewValue(42)
if v.Type() == value.INTEGER { // Do something }
i, ok := v.Actual().(int64) if ok { // Do something with the integer value }Overall, the github.com/couchbase/query/value package provides useful tools for working with values in the Couchbase Query language.