net/url.URL.User (field)
29 uses
net/url (current package)
url.go#L365: User *Userinfo // username and password information
url.go#L559: url.User, url.Host, err = parseAuthority(authority)
url.go#L817: if u.Scheme != "" || u.Host != "" || u.User != nil {
url.go#L818: if u.OmitHost && u.Host == "" && u.User == nil {
url.go#L821: if u.Host != "" || u.Path != "" || u.User != nil {
url.go#L824: if ui := u.User; ui != nil {
url.go#L869: if _, has := ru.User.Password(); has {
url.go#L870: ru.User = UserPassword(ru.User.Username(), "xxxxx")
url.go#L1084: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1092: url.User = nil
url.go#L1106: url.User = u.User
net/http
client.go#L161: if lastReq.User != nil {
client.go#L168: auth := lastReq.User.String() + "@"
client.go#L247: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L1027: _, passSet := u.User.Password()
client.go#L1029: return strings.Replace(u.String(), u.User.String()+"@", u.User.Username()+":***@", 1)
clone.go#L28: if u.User != nil {
clone.go#L29: u2.User = new(url.Userinfo)
clone.go#L30: *u2.User = *u.User
transport.go#L863: if u := cm.proxyURL.User; u != nil {
transport.go#L1648: if u := cm.proxyURL.User; u != nil {
go.uber.org/zap
sink.go#L131: if u.User != nil {
golang.org/x/net/proxy
proxy.go#L83: if u.User != nil {
proxy.go#L85: auth.User = u.User.Username()
proxy.go#L86: if p, ok := u.User.Password(); ok {
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |