Documentation ¶
Index ¶
- func Base64(n int, padded bool) (string, error)
- func Bytes(n int) ([]byte, error)
- func Filter(input interface{}) interface{}
- func Number(n int) string
- func Params(args map[string]interface{}) *api.SearchCollectionParams
- func Sort(sortCriteria map[string]interface{}) *options.FindOptions
- func StructToMap(obj interface{}) (map[string]interface{}, error)
- func UID(ctx context.Context) (*primitive.ObjectID, error)
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Params ¶
func Params(args map[string]interface{}) *api.SearchCollectionParams
func Sort ¶
func Sort(sortCriteria map[string]interface{}) *options.FindOptions
Sort converts a map of sort criteria into MongoDB-compatible sort options.
func StructToMap ¶
Types ¶
type ContextKey ¶
type ContextKey string
Click to show internal directories.
Click to hide internal directories.