Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB 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 Load ¶
Load loads a database from fsys's api/go*.txt files. Typically, fsys should be the root of a Go repository (a $GOROOT).
func (DB) Func ¶
Func returns a string (such as "1.7") specifying which Go version introduced a symbol, unless it was introduced in Go1, in which case it returns the empty string.
The kind is one of "type", "method", or "func".
The receiver is only used for "methods" and specifies the receiver type, such as "*Server".
The name is the symbol name ("Server") and the pkg is the package ("net/http").
type PkgDB ¶
type PkgDB struct { Type map[string]string // "Server" -> "1.7" Method map[string]map[string]string // "*Server" ->"Shutdown"->1.8 Func map[string]string // "NewServer" -> "1.7" Field map[string]map[string]string // "ClientTrace" -> "Got1xxResponse" -> "1.11" }
PkgDB 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.