Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type File ¶
type File struct {
Package string `json:"package,omitempty"`
Path []string `json:"path,omitempty"`
Name string `json:"name"`
Imports Imports `json:"imports"`
Blocks Blocks `json:"blocks"`
}
func (*File) AddImport ¶
func (f *File) AddImport(t ImportType, v string)
type Import ¶
type Import struct {
Type ImportType
Value string
}
func NewImport ¶
func NewImport(t ImportType, v string) *Import
type ImportType ¶
type ImportType string
const ( ImportTypeInternal ImportType = "internal" ImportTypeExternal ImportType = "external" ImportTypeApp ImportType = "app" )
type Imports ¶
type Imports []*Import
func (Imports) ByType ¶
func (i Imports) ByType(t ImportType) []string
func (Imports) RenderHTML ¶
Click to show internal directories.
Click to hide internal directories.