1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

ch4-5-fix typos

This commit is contained in:
sfw 2018-08-18 15:24:05 +08:00
parent a2876ea292
commit e3cf9d1e3a

View File

@ -211,7 +211,7 @@ type Authentication struct {
} }
func (a *Authentication) GetRequestMetadata(context.Context, ...string) (map[string]string, error) { func (a *Authentication) GetRequestMetadata(context.Context, ...string) (map[string]string, error) {
return map[string]string{"login": a.Login, "password": a.Password}, nil return map[string]string{"user":a.User, "password": a.Password}, nil
} }
func (a *Authentication) RequireTransportSecurity() bool { func (a *Authentication) RequireTransportSecurity() bool {
return false return false