Package-Level Type Names (total 4, none are exported)
/* sort exporteds by: | */
apiVersions is a map of packages to information about those packages'
symbols and when they were added to Go.
Only things added after Go1 are tracked. Version strings are of the
form "1.1", "1.2", etc.
func ParsePackageAPIInfo(files []string) (apiVersions, error)
pkgAPIVersions contains information about which version of Go added
certain package symbols.
Only things added after Go1 are tracked. Version strings are of the
form "1.1", "1.2", etc.
constSincemap[string]string
// "ClientTrace" -> "Got1xxResponse" -> "1.11"
// "NewServer" -> "1.7"
// "*Server" ->"Shutdown"->1.8
// "Server" -> "1.7"
varSincemap[string]string
func CompareAPIVersions(path string, apiVersions pkgAPIVersions, inSH *internal.SymbolHistory) ([]string, error)
versionedRow represents an API feature, a parsed line of a
$GOROOT/api/go.*txt file.
// "type", "func", "method", "field" TODO: "const", "var"
// name of type, (struct) field, func, method
// "net/http"
// for methods, the receiver type ("Server", "*Server")
// for struct fields, the outer struct name
func parseRow(s string) (vr versionedRow, ok bool)
versionParser parses $GOROOT/api/go*.txt files and stores them in in its rows field.
// initialized lazily
parseFile parses the named <apidata>/VERSION.txt file.
For each row, it updates the corresponding entry in
vp.res to VERSION, overwriting any previous value.
Package-Level Functions (total 5, in which 4 are exported)
CompareAPIVersions returns the differences between apiVersions and
inVersionToNameToUnitSymbol.
IntroducedHistory returns a map of the first version when a symbol name is
added to the API, to the symbol name, to the UnitSymbol struct. The
UnitSymbol.Children field will always be empty, as children names are also
tracked.
LoadAPIFiles loads data about the API for the given package from dir.
ParseAPIInfo parses apiVersions using contents of the specified directory.
Package-Level Variables (total 2, neither is exported)
pathToEmbeddedMethods contains methods that appear on a struct, because it
was added to an embedded struct. pkgsite does not currently support embedding,
so these methods are skipped by when comparing the stdlib API for now.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.