import (
"bytes"
- "container/vector"
+ "encoding/base64"
"fmt"
"io"
"os"
}
func TestImportPath(t *testing.T) {
- if path := TypeOf(vector.Vector{}).PkgPath(); path != "container/vector" {
- t.Errorf("TypeOf(vector.Vector{}).PkgPath() = %q, want \"container/vector\"", path)
+ if path := TypeOf(&base64.Encoding{}).Elem().PkgPath(); path != "encoding/base64" {
+ t.Errorf(`TypeOf(&base64.Encoding{}).Elem().PkgPath() = %q, want "encoding/base64"`, path)
}
}
Name() string
// PkgPath returns the type's package path.
- // The package path is a full package import path like "container/vector".
+ // The package path is a full package import path like "encoding/base64".
// PkgPath returns an empty string for unnamed types.
PkgPath() string
// String returns a string representation of the type.
// The string representation may use shortened package names
- // (e.g., vector instead of "container/vector") and is not
+ // (e.g., base64 instead of "encoding/base64") and is not
// guaranteed to be unique among types. To test for equality,
// compare the Types directly.
String() string