vendor dependencies with dep

This commit is contained in:
dhax 2017-09-25 20:20:52 +02:00
parent 93d8310491
commit 1384296a47
2712 changed files with 965742 additions and 0 deletions

29
vendor/github.com/go-pg/pg/orm/table_params.go generated vendored Normal file
View file

@ -0,0 +1,29 @@
package orm
import "reflect"
type tableParams struct {
table *Table
strct reflect.Value
}
func newTableParams(strct interface{}) (*tableParams, bool) {
v := reflect.ValueOf(strct)
if !v.IsValid() {
return nil, false
}
v = reflect.Indirect(v)
if v.Kind() != reflect.Struct {
return nil, false
}
return &tableParams{
table: Tables.Get(v.Type()),
strct: v,
}, true
}
func (m tableParams) AppendParam(b []byte, f QueryFormatter, name string) ([]byte, bool) {
return m.table.AppendParam(b, m.strct, name)
}