Last active
November 2, 2022 19:26
-
-
Save techslides/8957209 to your computer and use it in GitHub Desktop.
Equality checking in Go Lang Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{if eq .authuser.Id .user.Id }}<button type="button" class="delete_user" rel="{{.user.Id}}">Delete My Account</button>{{end}} |
Thx for sharing. Helped a lot.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Learn more about this code here: http://techslides.com/martini-app-with-ajax-json-and-user-sessions/