github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/wsctl/config/config.go (about) 1 package config 2 3 var ( 4 SupportedLanguage = []Language{"English", "中文"} 5 ) 6 7 var ( 8 English Language = SupportedLanguage[0] 9 Chinese Language = SupportedLanguage[1] 10 ) 11 12 // Multi-language support 13 type Language string 14 15 // Config defines the config schema 16 type Config struct { 17 Endpoint string `json:"endpoint" yaml:"endpoint"` 18 Language Language `json:"language" yaml:"language"` 19 }