go

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2020 License: MIT

README

Go Utils

Utils for go

Usage

Start the database

docker run -d --rm -p 3306:3306 --name go-mariadb -e MYSQL_ROOT_PASSWORD=golang -e MYSQL_USER=golang -e MYSQL_PASSWORD=golang -e MYSQL_DATABASE=clients mariadb:10.3.9-bionic

Run the test suite

export SQL_CONN="golang:golang@tcp(localhost:3306)/clients"
go test ./...

Or account roundpartner

export SQL_CONN="roundpartner:roundpartner@tcp(192.168.33.99:3306)/clients"
go test ./...

Stop the database

docker stop go-mariadb

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL