Files
elm/core/values.go
2024-01-26 01:52:46 +07:00

26 lines
367 B
Go

package elm
import (
"golang.org/x/exp/constraints"
)
type INumber interface {
constraints.Float | constraints.Integer
}
type ElmValueType int32
const (
NULLPTR ElmValueType = 0
NUMBER ElmValueType = 1
)
type ElmValue struct {
Type ElmValueType
Number int64
Null int64
}
func Number(val int64) ElmValue {
return ElmValue{Type: NUMBER, Number: val }
}