Viewing posts tagged golang

Get started with Authboss in Golang

What this

In this post I tell you how to get the /register page of Authboss part way up and running. Yes, part way. Not the full way. I haven't even figured out how to set up all the requirements for this registration module yet, let alone the database.

How to `CREATE DATABASE dbName IF NOT EXISTS` in postgres in golang

If you're here, it's probably because you're having trouble using SQL for postgres in Golang to create a database if it doesn't exist. Part of the problem is, postgres doesn't support the CREATE DATABASE dbName IF NOT EXISTS; idiom for databases. Here's how I'm doing it:

For beginners: Golang pointers make sense when used in pointer receivers

If you know how pointers work in pointer receivers, go away! Or, read on anyway and please, please tell me if I'm wrong on any point.