This is a nice general overview of how to use modules with Go 1.11 and higher.