Comment Comment by tptacek Apart from the JWT thing (please avoid JWT if possible), I agree with this comment 100%. Things I'd like to see in a Go web app example site:1. Examples of using context values to pass things selectively to handlers.2. An arbitrary trivial middleware example, like a specialized request logger, just to demonstrate Go middleware.3. A Rails/Django-style session token done in the same middleware style.4. Giving requests a notion of "current user".5. Simplified user-visible vs. developer-visible error handling.It's too much to ask for ORM-style database query examples, I know, but that too would be nice. parent tptacek 9 years ago
1. Examples of using context values to pass things selectively to handlers.
2. An arbitrary trivial middleware example, like a specialized request logger, just to demonstrate Go middleware.
3. A Rails/Django-style session token done in the same middleware style.
4. Giving requests a notion of "current user".
5. Simplified user-visible vs. developer-visible error handling.
It's too much to ask for ORM-style database query examples, I know, but that too would be nice.