import "cmd/go/internal/auth"
Package auth provides access to user-provided authentication credentials.
auth.go netrc.go
func AddCredentials(req *http.Request) (added bool)
AddCredentials fills in the user's credentials for req, if any. The return value reports whether any matching credentials were found.