Updated go version 1.24.0

This commit is contained in:
2025-02-25 09:13:08 -05:00
parent 85938a2def
commit e3271ea47a
7 changed files with 50 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ import (
type Config struct {
initializeOnce sync.Once
Generator *generatorConfig
Generator *GeneratorConfig
Aws *awsConfig
Redis *redisConfig
}

View File

@@ -5,7 +5,7 @@ import (
"github.com/bigkevmcd/go-configparser"
)
type generatorConfig struct {
type GeneratorConfig struct {
Salt []byte
Key []byte
Host string
@@ -13,11 +13,11 @@ type generatorConfig struct {
PlainUrl bool
}
func getGeneratorConfig(p *configparser.ConfigParser) (*generatorConfig, error) {
func getGeneratorConfig(p *configparser.ConfigParser) (*GeneratorConfig, error) {
var config string
var err error
gc := &generatorConfig{}
gc := &GeneratorConfig{}
if !p.HasSection("img-proxy") {
return nil, fmt.Errorf("config error - [img-proxy] config required")
}