LSP-server-example
17 строк · 257.0 Байт
1package config2
3import (4"flag"5)
6
7type Config struct {8AppPort string `mapstructure:"APP_PORT"`9}
10
11func LoadConfig() (*Config, error) {12var config Config13flag.StringVar(&config.AppPort, "p", "9091", "Server port")14flag.Parse()15
16return &config, nil17}
18