github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/types/numeric/init.go (about)

     1  package numeric
     2  
     3  import (
     4  	"github.com/lmorg/murex/lang"
     5  	"github.com/lmorg/murex/lang/types"
     6  )
     7  
     8  func init() {
     9  	// Register data types
    10  	lang.Marshallers[types.Integer] = marshalInt
    11  	lang.Unmarshallers[types.Integer] = unmarshalInt
    12  
    13  	lang.Marshallers[types.Float] = marshalFloat
    14  	lang.Unmarshallers[types.Float] = unmarshalFloat
    15  
    16  	lang.Marshallers[types.Number] = marshalNumber
    17  	lang.Unmarshallers[types.Number] = unmarshalNumber
    18  }