jeudi 22 décembre 2016

Golang Templates - If not true (!true)

In golang's template/html package, I can use to check if logged in is true.

How do I check if .loggedIn is false without using ne or eq?


For example, I am looking for something like


<h1>Not logged in</h1>


Aucun commentaire:

Enregistrer un commentaire