Help us shape the future of Go! Take the 2026 Go Developer Survey

mutate

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INT  = "int"
	DATE = "date"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	Id     OperationId
	Field  []string
	Params []string
}

func (Operation) Apply

func (o Operation) Apply(record interface{}) error

Applies the Operation o to a record, recursively entering the maps and slices to get to the element in the path specified in o.Field

type OperationId

type OperationId int
const (
	CAST OperationId = 1 << iota
)

Jump to

Keyboard shortcuts

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