recommender/internal/schema/entity.go

18 lines
254 B
Go
Raw Normal View History

2024-11-06 10:47:56 +00:00
package schema
import (
"strconv"
)
type EntityId uint
//type EntityId int64
func (i EntityId) String() string {
return strconv.FormatUint(uint64(i), 10)
//return strconv.FormatInt(int64(i), 10)
}
func (i EntityId) Uint() uint {
return uint(i)
}