(in string)
| 2002 | func SetConfigName(in string) { v.SetConfigName(in) } |
| 2003 | |
| 2004 | func (v *Viper) SetConfigName(in string) { |
| 2005 | if v.finder != nil { |
| 2006 | v.logger.Warn("ineffective call to function: custom finder takes precedence", slog.String("function", "SetConfigName")) |
| 2007 | } |
| 2008 | |
| 2009 | if in != "" { |
| 2010 | v.configName = in |
| 2011 | v.configFile = "" |
| 2012 | } |
| 2013 | } |
| 2014 | |
| 2015 | // SetConfigType sets the type of the configuration returned by the |
| 2016 | // remote source, e.g. "json". |