Esempio n. 1
0
// newStructBinder
func newStructBinder(fv reflect.Value) *structBinder {
	method := gotype.GetMethodInfoByValue(fv)

	return &structBinder{
		method: method,
	}
}
Esempio n. 2
0
// newNamedBinder
func newNamedBinder(args []string, fv reflect.Value) *namedBinder {
	method := gotype.GetMethodInfoByValue(fv)

	return &namedBinder{
		method:  method,
		argsMap: args,
	}
}
Esempio n. 3
0
// newIndexBinder
func newIndexBinder(fv reflect.Value) *indexBinder {
	method := gotype.GetMethodInfoByValue(fv)
	return &indexBinder{
		method: method,
	}
}