🏷️ Removed environment variables prefix in Config domain
This commit is contained in:
parent
08079ee133
commit
4e6342dda2
|
@ -7,8 +7,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Host string `env:"HOME_HOST" envDefault:"0.0.0.0"`
|
Host string `env:"HOST" envDefault:"0.0.0.0"`
|
||||||
Port uint16 `env:"HOME_PORT" envDefault:"3000"`
|
Port uint16 `env:"PORT" envDefault:"3000"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c Config) AddrPort() netip.AddrPort {
|
func (c Config) AddrPort() netip.AddrPort {
|
||||||
|
|
Loading…
Reference in New Issue