Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created May 29, 2018 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cibernomadas/9243584f9cc984a7dda5545b91465f53 to your computer and use it in GitHub Desktop.
Save Cibernomadas/9243584f9cc984a7dda5545b91465f53 to your computer and use it in GitHub Desktop.
<p>Hola <b>{{ .username }}</b></p>
{{ range $key, $value := .posts }}
<div><p>{{ $value.user }} ha escrito: <b>{{ $value.body }}</b></p></div>
{{ else }}
<div><p>No hay mensajes</p></div>
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment