the-intern / toolkit

Some Go modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toolkit

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

The included tools and testing so far:

  • 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 primarily for generating file names
  • 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/the-intern/toolkit

About

Some Go modules

License:MIT License


Languages

Language:Go 100.0%