func New(dom DOM, log Log, httpClient HTTPRequester) *User {
	quoteLetters := `\^$*+?.()|[]{}`
	escapePairs := make([]string, len(quoteLetters)*2)
	for i := range quoteLetters {
		letter := quoteLetters[i : i+1]
		escapePairs[i*2] = letter
		escapePairs[i*2+1] = `\` + letter
	}
	escapeR := strings.NewReplacer(escapePairs...)
	u := User{
		dom:        dom,
		log:        log,
		httpClient: httpClient,
		escapeR:    escapeR,
	}
	return &u
}
// New creates a http/login helper struct.
New creates a http/login helper struct.
// New creates a http / login helper struct .
func New(dom DOM, log Log, httpClient HTTPRequester) *User {
	quoteLetters := `\^$*+?.()|[]{}`
	escapePairs := make([]string, len(quoteLetters)*2)
	for i := range quoteLetters {
		letter := quoteLetters[i : i+1]
		escapePairs[i*2] = letter
		escapePairs[i*2+1] = `\` + letter
	}
	escapeR := strings.NewReplacer(escapePairs...)
	u := User{
		dom:        dom,
		log:        log,
		httpClient: httpClient,
		escapeR:    escapeR,
	}
	return &u
}
func New ( dom DOM , log Log , httpClient HTTPRequester ) * User { quoteLetters := `\^$*+?.()|[]{}` escapePairs := make ( [ ] string , len ( quoteLetters ) * 2 ) for i := range quoteLetters { letter := quoteLetters [ i : i + 1 ] escapePairs [ i * 2 ] = letter escapePairs [ i * 2 + 1 ] = `\` + letter } escapeR := strings . NewReplacer ( escapePairs ... ) u := User { dom : dom , log : log , httpClient : httpClient , escapeR : escapeR , } return & u }
New creates a http/login helper struct.
New creates a http / login helper struct .