...

Package auth

import "cmd/go/internal/auth"
Overview
Index

Overview ▾

Package auth provides access to user-provided authentication credentials.

func AddCredentials

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.