Skip to content

Releases: resonantChaos22/toolkit

Version 2 Release

20 May 15:35

Choose a tag to compare

Breaking Change

  • New version due to a breaking change in the DownloadStaticFIle function.
  • Now using pathName instead of the path and fileName

Initial Release

20 May 15:22

Choose a tag to compare

Toolkit

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

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/resonantChaos22/toolbox