code: func (c *Config) Load(confFile string) error {
  	metaData, err := toml.DecodeFile(confFile, c)
  	if c.TokenLimit <= 0 {
  		c.TokenLimit = 1000
  	}
  
  	// If any items in confFile file are not mapped into the Config struct, issue
  	// an error and stop the server from starting.
  	undecoded := metaData.Undecoded()
  	if len(undecoded) > 0 && err == nil {
  		var undecodedItems []string
  		for _, item := range undecoded {
  			undecodedItems = append(undecodedItems, item.String())
  		}
  		err = &ErrConfigValidationFailed{fmt.Sprintf("config file %s contained unknown configuration options: %s", confFile, strings.Join(undecodedItems, ", "))}
  	}
  
  	return err
  }
docs: // Load loads config options from a toml file.