Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Created August 12, 2014 05:49
Show Gist options
  • Save dvas0004/804f26e556b72114ed0f to your computer and use it in GitHub Desktop.
Save dvas0004/804f26e556b72114ed0f to your computer and use it in GitHub Desktop.
HTML snipped showing goland template repetition structure. Part of: https://github.com/dvas0004/learning/tree/master/golang/myown/NetSecurityCheck
<html>
<head>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container well">
<h2>Alerts</h2>
<hr>
{{range $element := .Alerts}}
<div class="alert alert-danger">{{$element}}</div>
{{end}}
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment