Skip to content

Instantly share code, notes, and snippets.

@jayd3e
Created March 21, 2014 04:29
Show Gist options
  • Save jayd3e/9679533 to your computer and use it in GitHub Desktop.
Save jayd3e/9679533 to your computer and use it in GitHub Desktop.
type Config struct {
DefaultApiUrl string
Remotes map[string]remote
}
type remote struct {
Name string
Url string
ApiUrl string
}
defaultConfigFileTemplate.Execute(fo, Config{
DefaultApiUrl: "http://localhost:4001",
Remotes: []remote{
Name: "production",
Url: "git@herokuapp.com:clusterflunk.git",
ApiUrl: "http://localhost:4001",
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment