Ldap authentication

I have a web app written in go for which I would like to use ldap user authentication. I am wondering how I can secure certain routes, so that only authenticated users would be able to access that.

short answer - add middleware to those routes that will secure them (make sure that a proper header is set and check its correctness).