🏷️ Removed environment variables prefix in Config domain

This commit is contained in:
Maxim Lebedev 2023-11-08 03:49:37 +06:00
parent 08079ee133
commit 4e6342dda2
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ import (
)
type Config struct {
Host string `env:"HOME_HOST" envDefault:"0.0.0.0"`
Port uint16 `env:"HOME_PORT" envDefault:"3000"`
Host string `env:"HOST" envDefault:"0.0.0.0"`
Port uint16 `env:"PORT" envDefault:"3000"`
}
func (c Config) AddrPort() netip.AddrPort {