Home
Softono

Go Catbox

Open source MIT Go
14
Stars
5
Forks
2
Issues
2
Watchers
2 years
Last Commit

 About Go Catbox

A toolkit to help upload files to Catbox.moe

Platforms

Web Self-hosted

Languages

Go

Links

Need Help Installing Go Catbox?

We provide expert installation service for this software. Our team will install, configure, and secure Go Catbox on your server. plans start at just $30.

go-catbox

go-catbox is a toolkit to help upload files to Catbox.

Installation

The simplest, cross-platform way is to download from GitHub Releases and place the executable file in your PATH.

Via Golang package install command

go install github.com/wabarc/go-catbox/cmd/catbox@latest

From gobinaries.com:

$ curl -sf https://gobinaries.com/wabarc/go-catbox | sh

Usage

Command-line:

$ catbox
A CLI tool help upload files to Catbox.

Usage:

  catbox [options] [file1] ... [fileN]

Go package:

import (
        "fmt"

        "github.com/wabarc/go-catbox"
)

func main() {
        if url, err := catbox.New(nil).Upload(path); err != nil {
            fmt.Fprintf(os.Stderr, "catbox: %v\n", err)
        } else {
            fmt.Fprintf(os.Stdout, "%s  %s\n", url, path)
        }
}

License

This software is released under the terms of the MIT. See the LICENSE file for details.