Documentation ¶
Index ¶
- Variables
- func AllKeys(objsMapList []map[string]interface{}) []string
- func AsInterfaces(slice interface{}) []interface{}
- func Contains(s []string, str string) bool
- func Dump(obj interface{}) string
- func DumpTable(slice interface{}) string
- func Map(s interface{}) map[string]interface{}
- func PrintDump(obj interface{})
- func PrintDumpTable(objs interface{})
- func Vars(objs map[string]interface{})
- type Struct
- type TableFilter
- type TableOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTagName is the default tag name for struct fields which provides // a more granular to tweak certain structs. Lookup the necessary functions // for more info. DefaultTagName = "structs" // struct's field default tag name )
archived: https://github.com/fatih/structs
Functions ¶
func AsInterfaces ¶
func AsInterfaces(slice interface{}) []interface{}
func PrintDumpTable ¶
func PrintDumpTable(objs interface{})
Types ¶
type TableFilter ¶
type TableFilter func(*tablewriter.Table)
type TableOptions ¶
type TableOptions struct { Headers []string Writer io.Writer Filter TableFilter }
func (TableOptions) DumpTable ¶
func (options TableOptions) DumpTable(slice interface{}) string
func (TableOptions) PrintDumpTable ¶
func (options TableOptions) PrintDumpTable(slice interface{})
Click to show internal directories.
Click to hide internal directories.