Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 232 Bytes
package httputils
type option func(*Client)
// AddAuth adds basic authentication to the client
func AddAuth(username string, password string) option {
return func(c *Client) {
c.Username = username
c.Password = password
}
}
You can’t perform that action at this time.