feat: add missing Bin on config

This commit is contained in:
Urko 2023-03-04 21:56:47 +01:00
parent d69bfe4590
commit fb48c6a9cc
2 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ build:
rm -rf ${BINARY_DIR}
mkdir ${BINARY_DIR}
env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go
build_raspi:
build_freebsd:
rm -rf ${BINARY_DIR}
mkdir ${BINARY_DIR}
env GOOS=freebsd CGO_ENABLED=0 GOARCH=arm64 ENV=prod go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go

View File

@ -12,6 +12,7 @@ type Config struct {
AdminUser string `required:"true" split_words:"true"`
Password string `required:"true" split_words:"true"`
LogFile bool `required:"true" split_words:"true"`
Bin string `required:"true" split_words:"true"`
}
func NewConfig(envFilePath string) *Config {