util

package
v0.0.0-...-5a7e91a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamedTagForField

func GetNamedTagForField(model interface{}, fieldName, tagName string) string

func GetValueOfField

func GetValueOfField(model interface{}, fieldName string) interface{}

func ImportJsonFieldsValues

func ImportJsonFieldsValues(model interface{}, data JsonFieldsValuesFormat, unmarshal func([]byte) interface{}) []interface{}

func MakeCreate

func MakeCreate(model interface{}) string

func MakeInsert

func MakeInsert(model interface{}) (string, []interface{})

func MakeUpdate

func MakeUpdate(model interface{}) (string, []interface{})

func TableName

func TableName(model interface{}) string

Types

type JsonFieldsValuesFormat

type JsonFieldsValuesFormat struct {
	Fields []string   `json:"fields"`
	Values [][]string `json:"values"`
}

Jump to

Keyboard shortcuts

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