Source File
compare.go
Belonging Package
golang.org/x/pkgsite/internal/symbol
package symbol
import (
)
func ( string, pkgAPIVersions, *internal.SymbolHistory) ([]string, error) {
, := IntroducedHistory()
if != nil {
return nil,
}
:= map[string]string{}
for , := range .Versions() {
:= .SymbolsAtVersion()
if stdlib.Contains() {
, = stdlib.TagForVersion()
if != nil {
return nil,
}
}
return true
}
if , := pathToEmbeddedMethods[]; {
if , := []; {
return true
}
}
if , := pathToExceptions[]; {
if , := []; {
return true
}
}
return false
}
:= func(, string) {
if stdlib.Contains() && () {
return
}
, := []
delete(, )
if ! {
= append(, fmt.Sprintf("not found: (want %q) %q \n", , ))
}
} else if != {
= append(, fmt.Sprintf("mismatch: (want %q | got %q) %q\n", , , ))
}
}
for , := range []map[string]string{
.constSince,
.varSince,
.funcSince,
.typeSince,
} {
for , := range {
(, )
}
}
for , := range .methodSince {
for , := range {
= strings.TrimPrefix(, "*")
(+"."+, )
}
}
for , := range .fieldSince {
for , := range {
(+"."+, )
}
}
![]() |
The pages are generated with Golds v0.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. |