package helpers import "encoding/base64" func BasicAuth(username, password string) string { authString := username + ":" + password return base64.StdEncoding.EncodeToString([]byte(authString)) }