Installation
1. Get the fncmp package
go get github.com/snburman/fncmp
2. Download fncmp.min.js
3. Create an HTML file (or template)
Here we've included the fncmp.min.js file in the head of the HTML.
- HTML
- Template
static/index.html
<!DOCTYPE html>
<html>
<head>
<title>My Project</title>
<script src="fncmp.min.js"></script>
</head>
<body>
<main></main>
</body>
</html>
index.templ
templ Index() {
<html>
<head>
<title>My Project</title>
<script src="fncmp.min.js"></script>
</head>
<body>
<main></main>
</body>
</html>
}