Skip to content

Instantly share code, notes, and snippets.

@techslides
Last active November 2, 2022 19:26
Show Gist options
  • Save techslides/8957209 to your computer and use it in GitHub Desktop.
Save techslides/8957209 to your computer and use it in GitHub Desktop.
Equality checking in Go Lang Templates
{{if eq .authuser.Id .user.Id }}<button type="button" class="delete_user" rel="{{.user.Id}}">Delete My Account</button>{{end}}
@techslides
Copy link
Author

@rodolfoag
Copy link

Thx for sharing. Helped a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment