0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

go fmt and golint

This commit is contained in:
vx3r
2020-06-10 16:52:44 +09:00
parent 172551dcab
commit 6049ba8089
10 changed files with 14 additions and 4 deletions

View File

@ -11,6 +11,7 @@ import (
)
var (
// AuthTokenHeaderName http header for token transport
AuthTokenHeaderName = "x-wg-gen-web-auth"
// RegexpEmail check valid email
RegexpEmail = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")