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

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

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