chipku

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 3 Imported by: 0

README

build test Go Report Card

Chipku - a no frill pastebin 🗑️

Pastebin in Golang.

This is an in-memory paste bin which tries to be extremely minimal and doesn't get in the way. Simply a tool to quickly share snippets. No backend databases, no code formatting or code commenting, no self-destructing messages.

If you restart the application, you will lose your snippets.

Installation

You may download the standalone binary from the releases section and run it as,

./chipku serve

By default the binary starts listening on port 8080. To change this, please set the port using --port flag.

./chipku serve --port=8081

Or you may download the project and build (or run) from source,

go build -o chipku && ./chipku serve
# or
go install && chipku serve

Usage

Simply visit the homepage and paste your text that you would like to share.

Or you can simply use command-line to PUT your text, using httpie

httpie

To get your snippet in command-line, set the No-Html HTTP header,

httpie-get

Development

To run tests, use

make test

Building the docker image and running it using docker-compose (serves over port 8090)

make up

Checking the logs

docker compose logs # or docker-compose logs

dockerlogs

Structured logs for easy parsing in tools like Datadog.

For linting and local builds

make lint
make build

Credits

This app was inspired by bin, a pastebin in rust.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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