Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MarkerImplements = att.Mark("github.com/jpicht/polyjson/markers", "Implements") MarkerCommon = att.Mark("github.com/jpicht/polyjson/markers", "Common") MarkerInterface = att.Mark("github.com/jpicht/polyjson/markers", "Interface") MarkerTypeID = att.Mark("github.com/jpicht/polyjson/markers", "TypeID") AdditionalFields = att.Mark("github.com/jpicht/polyjson/markers", "AdditionalFields") JWriterWritable = att.Mark("github.com/launchdarkly/go-jsonstream/v3", "Writable") EasyJSONUnmarshaler = att.Mark("github.com/mailru/easyjson", "Unmarshaler") EncodingJSONUnmarshaler = att.Mark("encoding/json", "Unmarshaler") EncodingJSONMarshaler = att.Mark("encoding/json", "Marshaler") )
View Source
var DefaultConfig = Config{ Markers: []att.Marker{ MarkerCommon, MarkerImplements, MarkerInterface, }, TypeMarkers: []att.Marker{ MarkerTypeID, }, Interfaces: []att.Marker{ EasyJSONUnmarshaler, EncodingJSONUnmarshaler, AdditionalFields, JWriterWritable, }, Packages: packages.Config{ Mode: packages.NeedName | packages.NeedFiles | packages.NeedImports | packages.NeedTypes | packages.NeedTypesInfo | packages.NeedDeps, }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Result ¶
type Result struct {
Config *Config
StdLib struct {
FileSet *token.FileSet
Packages []*packages.Package
}
Additional map[string][]byte
Directory string
Packages []*att.Package
Helpers struct {
InterfaceTests map[att.Marker]func(types.Type) bool
TypeMarkerTests map[att.Marker]func(types.Type) bool
MarkerTests map[att.Marker]func(types.Type) bool
}
}
Click to show internal directories.
Click to hide internal directories.