Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2021 Changes in this version + var ErrInvalidHex = errors.New("the provided hex string is not a valid ObjectID") + func ArrayIndexOf(arr []string, s string) int + func GetOutboundIP() string + func MergeStructByMarshal(a, b interface{}) (err error) + type ObjectID [12]byte + var NilObjectID ObjectID + func NewObjectID() ObjectID + func NewObjectIDFromTimestamp(timestamp time.Time) ObjectID + func ObjectIDFromHex(s string) (ObjectID, error) + func (id *ObjectID) UnmarshalJSON(b []byte) error + func (id ObjectID) Hex() string + func (id ObjectID) IsZero() bool + func (id ObjectID) MarshalJSON() ([]byte, error) + func (id ObjectID) String() string + func (id ObjectID) Timestamp() time.Time