github.com/miguelgrubin/gin-boilerplate@v0.0.0-20231208120009-f8f00c6d4138/pkg/shared/types.go (about) 1 // Package shared provides common services, custom types and domain definitions used in other modules. 2 package shared 3 4 import ( 5 "time" 6 ) 7 8 type EntityID string 9 10 func (e EntityID) String() string { 11 return string(e) 12 } 13 14 type DateTime time.Time 15 16 func (d DateTime) Time() time.Time { 17 return time.Time(d) 18 }