Skip to content

Instantly share code, notes, and snippets.

@philipz
Created July 24, 2014 17:08
Show Gist options
  • Save philipz/69c56861e33b66305955 to your computer and use it in GitHub Desktop.
Save philipz/69c56861e33b66305955 to your computer and use it in GitHub Desktop.
Go template
From http://play.golang.org/p/-pR3Bn6efy
{{range $index,$server := .myapp_upstream}}{{ if $index }}, {{ end }}{{$server.Value}}{{end}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment