net/url.Userinfo.Username (method)
14 uses
net/url (current package)
url.go#L400: func (u *Userinfo) Username() string {
url.go#L869: ru.User = UserPassword(ru.User.Username(), "xxxxx")
net/http
client.go#L239: username := u.Username()
client.go#L1006: return strings.Replace(u.String(), u.User.String()+"@", u.User.Username()+":***@", 1)
transport.go#L843: username := u.Username()
transport.go#L1625: Username: u.Username(),
github.com/go-git/go-git/v5/plumbing/transport
common.go#L186: user = u.User.Username()
github.com/go-redis/redis/v8
options.go#L202: o.Username = u.User.Username()
github.com/jackc/pgconn
config.go#L393: settings["user"] = url.User.Username()
errors.go#L190: u.User = url.UserPassword(u.User.Username(), "xxxxx")
github.com/lib/pq
url.go#L51: v := u.User.Username()
golang.org/x/net/proxy
proxy.go#L85: auth.User = u.User.Username()
google.golang.org/grpc
proxy.go#L92: u := t.Username()
google.golang.org/grpc/internal/credentials
spiffe.go#L41: if uri == nil || uri.Scheme != "spiffe" || uri.Opaque != "" || (uri.User != nil && uri.User.Username() != "") {
![]() |
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. |