code: func saveConfig(c Config) {
  	j, err := json.MarshalIndent(c, "", "  ")
  	if err == nil {
  		err = ioutil.WriteFile(configFile, j, 0644)
  	}
  
  	if err != nil {
  		log.Fatal(err)
  	}
  }
docs: // Saves chains to config