Documentation
¶
Index ¶
- type Parser
- func (p *Parser) GetGoVersion() string
- func (p *Parser) GetModPath() string
- func (p *Parser) GetRequireIndirectModList() []string
- func (p *Parser) GetRequireModList() []string
- func (p *Parser) JsonMarshal() ([]byte, error)
- func (p *Parser) JsonMarshalIndent(prefix, indent string) ([]byte, error)
- func (p *Parser) JsonMarshalToString() (string, error)
- func (p *Parser) Parse() *modfile.File
- func (p *Parser) YamlMarshal() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) GetRequireIndirectModList ¶
GetRequireIndirectModList 间接引入的包列表
func (*Parser) GetRequireModList ¶
GetRequireModList 直接引用的包列表
func (*Parser) JsonMarshal ¶
JsonMarshal adapts to json/encoding Marshal API
func (*Parser) JsonMarshalIndent ¶
JsonMarshalIndent same as json.MarshalIndent. Prefix is not supported.
func (*Parser) JsonMarshalToString ¶
JsonMarshalToString convenient method to write as string instead of []byte
Click to show internal directories.
Click to hide internal directories.