github.com/alloyzeus/go-azfl@v0.0.0-20231220071816-9740126a2d07/azid/id_num.go (about) 1 package azid 2 3 import ( 4 "github.com/alloyzeus/go-azfl/azob" 5 ) 6 7 type IDNumMethods interface { 8 azob.Equatable 9 10 AZIDNum() 11 12 // An IDNum must be azid-bin-marshalable as a field. It never need to be 13 // marshalable as a top-level object. 14 BinFieldMarshalable 15 } 16 17 // IDNum abstracts entity and entity-like object IDs. 18 // 19 //TODO: define that an IDNum must be of a primitive type. 20 type IDNum interface { 21 ~int16 | ~int32 | ~int64 22 23 IDNumMethods 24 }