Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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