Documentation
¶
Index ¶
- func ArrContains[T comparable](arr []T, obj T) bool
- func CheckHttpError(funcName string, resp *http.Response) error
- func GetObjectID(id *string) *primitive.ObjectID
- func GetObjectIDs(ids []*string) *[]*primitive.ObjectID
- func IsNil(i any) bool
- func Ptr[T any](obj T) *T
- func ToJsonString[T interface{}](obj T) string
- func UnPtrString(s *string) string
- func UnPtrs[T any](objs []*T) []T
- type BsonMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrContains ¶
func ArrContains[T comparable](arr []T, obj T) bool
func GetObjectID ¶
func GetObjectIDs ¶
func ToJsonString ¶
func ToJsonString[T interface{}](obj T) string
func UnPtrString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.