net/url.URL.User (field)
45 uses
net/url (current package)
url.go#L361: User *Userinfo // username and password information
url.go#L567: url.User, url.Host, err = parseAuthority(authority)
url.go#L820: if u.Scheme != "" || 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#L868: if _, has := ru.User.Password(); has {
url.go#L869: ru.User = UserPassword(ru.User.Username(), "xxxxx")
url.go#L1079: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1087: url.User = nil
url.go#L1101: url.User = u.User
net/http
client.go#L155: if lastReq.User != nil {
client.go#L162: auth := lastReq.User.String() + "@"
client.go#L238: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L1004: _, passSet := u.User.Password()
client.go#L1006: 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#L842: if u := cm.proxyURL.User; u != nil {
transport.go#L1623: if u := cm.proxyURL.User; u != nil {
github.com/go-git/go-git/v5/plumbing/transport
common.go#L185: if u.User != nil {
common.go#L186: user = u.User.Username()
common.go#L187: pass, _ = u.User.Password()
github.com/go-redis/redis/v8
options.go#L201: if u.User != nil {
options.go#L202: o.Username = u.User.Username()
options.go#L203: if p, ok := u.User.Password(); ok {
github.com/jackc/pgconn
config.go#L392: if url.User != nil {
config.go#L393: settings["user"] = url.User.Username()
config.go#L394: if password, present := url.User.Password(); present {
errors.go#L189: if _, pwSet := u.User.Password(); pwSet {
errors.go#L190: u.User = url.UserPassword(u.User.Username(), "xxxxx")
github.com/lib/pq
url.go#L50: if u.User != nil {
url.go#L51: v := u.User.Username()
url.go#L54: v, _ = u.User.Password()
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 {
google.golang.org/grpc
proxy.go#L91: if t := proxyURL.User; t != nil {
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. |