Skip to content

Commit efcbdfa

Browse files
authored
Merge pull request #1 from terryyylim/fix-struct-tag
Add struct tag to allow underscore separated env variables
2 parents 9ca90d0 + 84c7b55 commit efcbdfa

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

main.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ package main
22

33
import (
44
"context"
5-
feast "github.com/feast-dev/feast/sdk/go"
6-
"github.com/feast-dev/feast/sdk/go/protos/feast/serving"
7-
"github.com/feast-dev/feast/sdk/go/protos/feast/types"
8-
"github.com/kelseyhightower/envconfig"
95
"log"
106
"net/http"
117
"strconv"
128
"time"
9+
10+
feast "github.com/feast-dev/feast/sdk/go"
11+
"github.com/feast-dev/feast/sdk/go/protos/feast/serving"
12+
"github.com/feast-dev/feast/sdk/go/protos/feast/types"
13+
"github.com/kelseyhightower/envconfig"
1314
)
1415

1516
type Config struct {
16-
FeastServingHost string `default:"localhost"`
17-
FeastServingPort int `default:"6566"`
18-
ListenPort string `default:"8080"`
17+
FeastServingHost string `default:"localhost" split_words:"true"`
18+
FeastServingPort int `default:"6566" split_words:"true"`
19+
ListenPort string `default:"8080" split_words:"true"`
1920
}
2021

2122
func main() {

0 commit comments

Comments
 (0)