Documentation ¶ Index ¶ Variables type FilterOpt type Parser func NewParser(dir string, filter func(*FilterOpt) bool) (*Parser, error) func (p *Parser) GetBasePackage() string func (p *Parser) Parse() (res map[string]tstypes.Type, err error) Constants ¶ This section is empty. Variables ¶ View Source var All = func(opt *FilterOpt) bool { return true } View Source var Default = func(opt *FilterOpt) bool { if !opt.BasePackage { return false } if !opt.Exported { return false } return true } Functions ¶ This section is empty. Types ¶ type FilterOpt ¶ added in v1.0.0 type FilterOpt struct { BasePackage bool Package string Name string Exported bool // Dependency - 他のstructから依存されている場合にtrueとなる // 同じstructに対して複数回呼ばれ、依存されていない状況ではfalseとして呼ばれる可能性がある // 一度でもtrueとして返せば出力される // dependencyがfalseの時にtrueを返す場合、trueでも常にtrueを返すべきである Dependency bool } type Parser ¶ type Parser struct { Filter func(opt *FilterOpt) bool // contains filtered or unexported fields } func NewParser ¶ func NewParser(dir string, filter func(*FilterOpt) bool) (*Parser, error) func (*Parser) GetBasePackage ¶ added in v1.0.0 func (p *Parser) GetBasePackage() string func (*Parser) Parse ¶ func (p *Parser) Parse() (res map[string]tstypes.Type, err error) Source Files ¶ View all Source files basic.goconst.goopt.goparser.gostruct.goutil.go Click to show internal directories. Click to hide internal directories.