meta

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2017 License: MIT Imports: 11 Imported by: 0

README

qlang package meta

Usage
qlang.Import("", meta.Exports)
Function
  • pkgs func() []string
>>>pkgs()
[bufio bytes md5 io ioutil hex json errors math os path http reflect runtime strconv strings sync]
  • dir func(interface {}) []string
>>>dir(md5)
[_name new sum sumstr hash BlockSize Size]
  • doc func(interface {}) string
>>>doc(md5)
package crypto/md5
hash	func(interface {}, ...interface {}) string 
BlockSize	int 
Size	int 
_name	string 
new	func() hash.Hash 
sum	func([]uint8) [16]uint8 
sumstr	func([]uint8) string 

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exports = map[string]interface{}{
	"_name":   "qlang.io/qlang/meta",
	"fnlist":  FnList,
	"fntable": FnTable,
	"pkgs":    GoPkgList,
	"dir":     Dir,
	"doc":     Doc,
}

Exports is the export table of this module.

Functions

func Dir

func Dir(i interface{}) (list []string)

Dir returns list object of strings. for a module: the module's attributes. for a go struct object: field and func list. for a qlang class: function list. for a qlang class object: function and vars list.

func Doc added in v0.2.80

func Doc(i interface{}) string

Doc returns doc info of object

func Docs added in v0.2.80

func Docs(names string) string

Docs returns doc info of string, gopkg find in godoc

func ExporStructField

func ExporStructField(t reflect.Type) ([]string, error)

func FnList

func FnList() (list []string)

FnList returns qlang all function list

func FnTable

func FnTable() map[string]interface{}

FnTable returns qlang all function table

func GoPkgList

func GoPkgList() (list []string)

GoPkgList returns qlang Go implemented module list

func IsExported

func IsExported(name string) bool

Types

type ReflectValues added in v0.2.95

type ReflectValues []reflect.Value

reflect.Value slice

func (ReflectValues) Len added in v0.2.95

func (p ReflectValues) Len() int

func (ReflectValues) Less added in v0.2.95

func (p ReflectValues) Less(i, j int) bool

func (ReflectValues) Swap added in v0.2.95

func (p ReflectValues) Swap(i, j int)

Jump to

Keyboard shortcuts

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