github.com/goravel/framework@v1.13.9/contracts/config/config.go (about) 1 package config 2 3 //go:generate mockery --name=Config 4 type Config interface { 5 // Env get config from env. 6 Env(envName string, defaultValue ...any) any 7 // Add config to application. 8 Add(name string, configuration any) 9 // Get config from application. 10 Get(path string, defaultValue ...any) any 11 // GetString get string type config from application. 12 GetString(path string, defaultValue ...any) string 13 // GetInt get int type config from application. 14 GetInt(path string, defaultValue ...any) int 15 // GetBool get bool type config from application. 16 GetBool(path string, defaultValue ...any) bool 17 }