Categorygithub.com/jessfraz/snippetlib
modulepackage
0.2.5
Repository: https://github.com/jessfraz/snippetlib.git
Documentation: pkg.go.dev

# README

snippetlib

Travis CI GoDoc

Server to host code snippets.

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/jessfraz/snippetlib

Usage

$ snippetlib -h
snippetlib -  Server to host code snippets.

Usage: snippetlib <command>

Flags:

  --cert              path to ssl certificate (default: <none>)
  -d                  enable debug logging (default: false)
  --dbconn            database connection string (default: postgres://postgres:@127.0.0.1:5432/db?sslmode=disable)
  --key               path to ssl key (default: <none>)
  --mailchimp-apikey  Mailchimp APIKey for subscribing to newsletters (default: <none>)
  --mailchimp-listid  Mailchimp List ID for newsletter to subscribe emails to (default: <none>)
  -p                  port for server to run on (default: 3000)

Commands:

  version  Show the version information.

# Packages

No description provided by the author
No description provided by the author

# Structs

Category is how snippets get organized into groups.
Handler is the object which contains data to pass to the http handler functions.
Page defines the struct that gets passed to the layout template.
Snippet contains the code and description for a code snippet.

# Type aliases

JSONResponse is a map[string]string response from the web server.