Check out example codes for "go goose". It will help you in understanding the concepts better.

Code Example 1

$ go get -u github.com/pressly/goose/cmd/goose

Code Example 2

$ goose create add_some_column sql
$ Created new file: 20170506082420_add_some_column.sql

Learn ReactJs, React Native from akashmittal.com