reflectx

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package reflectx provide helpers for reflect.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerMethodName

func CallerMethodName(skip int) string

CallerMethodName returns caller's method name for given stack depth.

func CallerPkg

func CallerPkg(skip int) string

CallerPkg returns caller's package name (from path) 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.

Jump to

Keyboard shortcuts

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