diff --git a/Makefile b/Makefile index 46c69c7..b4166d2 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ release-check-tags: exit 1;\ fi -release: build-deps release-check-tags +release: build-deps release-check-tags check goreleaser release --rm-dist --debug release-snapshot: build-deps diff --git a/config/config.go b/config/config.go index bffa978..2dbed00 100644 --- a/config/config.go +++ b/config/config.go @@ -27,9 +27,9 @@ const ( // Config is the main config struct for the application. Use New to instantiate a default config struct. type Config struct { ListenHTTP string - ListenHTTPS string - KeyFile string - CertFile string + ListenHTTPS string + KeyFile string + CertFile string FirebaseKeyFile string CacheFile string CacheDuration time.Duration @@ -46,9 +46,9 @@ type Config struct { func New(listenHTTP string) *Config { return &Config{ ListenHTTP: listenHTTP, - ListenHTTPS: "", - KeyFile: "", - CertFile: "", + ListenHTTPS: "", + KeyFile: "", + CertFile: "", FirebaseKeyFile: "", CacheFile: "", CacheDuration: DefaultCacheDuration, diff --git a/server/server.go b/server/server.go index 1780ad2..0704a8b 100644 --- a/server/server.go +++ b/server/server.go @@ -83,7 +83,7 @@ var ( rawRegex = regexp.MustCompile(`^/[-_A-Za-z0-9]{1,64}(,[-_A-Za-z0-9]{1,64})*/raw$`) staticRegex = regexp.MustCompile(`^/static/.+`) - docsRegex = regexp.MustCompile(`^/docs(|/.*)$`) + docsRegex = regexp.MustCompile(`^/docs(|/.*)$`) //go:embed "index.gohtml" indexSource string @@ -97,7 +97,7 @@ var ( webStaticFsCached = &util.CachingEmbedFS{ModTime: time.Now(), FS: webStaticFs} //go:embed docs - docsStaticFs embed.FS + docsStaticFs embed.FS docsStaticCached = &util.CachingEmbedFS{ModTime: time.Now(), FS: docsStaticFs} errHTTPBadRequest = &errHTTP{http.StatusBadRequest, http.StatusText(http.StatusBadRequest)}