Philipp Heckel 4 лет назад
Родитель
Сommit
da8f90d388
3 измененных файлов с 9 добавлено и 9 удалено
  1. 1 1
      Makefile
  2. 6 6
      config/config.go
  3. 2 2
      server/server.go

+ 1 - 1
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

+ 6 - 6
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,

+ 2 - 2
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)}