operation

package
v0.0.0-...-ba7cdbd Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2014 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field string

type Operation

type Operation struct {
	Operator Operator
	Field    string
	Value    interface{}
}

func Add

func Add(field string, value int) *Operation

func Dec

func Dec(field string) *Operation

func Inc

func Inc(field string) *Operation

func Set

func Set(field string, value interface{}) *Operation

func Sub

func Sub(field string, value int) *Operation

type Operator

type Operator int
const (
	OpAdd Operator = iota + 1
	OpSub
	OpSet
)

Jump to

Keyboard shortcuts

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