Documentation ¶
Overview ¶
Package reflectx provide helpers for reflect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerMethodName ¶
CallerMethodName returns caller's method name for given stack depth.
func MethodsOf ¶
func MethodsOf(v interface{}) []string
MethodsOf require pointer to interface (e.g.: new(app.Appl)) and returns all it methods.
func RPCMethodsOf ¶
func RPCMethodsOf(v interface{}) []string
RPCMethodsOf require receiver value used for net/rpc.Register and returns all it RPC methods (detected in same way as net/rpc does).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.