Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 658 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 658 Bytes

Go-Toolkit

A simple example of how to create a reusable Go module with commonly used tools.

Made as apart of Trevor Sawler's course on Udemy

The included tools are:

  • Read JSON
  • Write JSON
  • Produce a JSON encoded error response
  • Upload a file to a specified directory
  • Download a static file
  • Get a random string of length n
  • Post JSON to a remote service
  • Create a directory, including all parent directories, if it does not already exist
  • Create a URL safe slug from a string

Installation

go get -u github.com/msf42/go-toolkit