utils

package module
v0.0.0-...-15ea2ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2018 License: BSD-3-Clause Imports: 4 Imported by: 3

README

utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToStruct

func MapToStruct(s interface{}, m map[string]interface{}) error

func SetField

func SetField(obj interface{}, name string, value interface{}) error

Types

type DeleteOptions

type DeleteOptions struct {
	Filter Filter
}

type Filter

type Filter map[string]interface{}

type FindOptions

type FindOptions struct {
	Filter Filter
	Sort   Sort
	Limit  Limit
	Max    Max
}

type HasOptions

type HasOptions struct {
	Filter Filter
}

type Limit

type Limit int

type Max

type Max int

type Sort

type Sort []string

type UpdateOptions

type UpdateOptions struct {
	Filter  Filter
	Updates Updates
}

type Updates

type Updates map[string]interface{}

Directories

Path Synopsis
cmd
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL