- Input: Image Path (Local)
- Output: Image URL (Github Repo)
- Github Api: github.com/google/go-github/v55/github
- Toml: github.com/BurntSushi/toml
- Github Repo (Public) Setup
- Token Generation
- Copy Configurations
cp config.toml.example config.toml
- Configurations
# Owner of the Repo
owner = "xxxxx"
# Repo for storing
repo = "github-image-bed"
# Token generated from Github
token = "xxxxxxxxxxxxxxxx"
# Baseurl for fetching image
baseURL = "https://raw.githubusercontent.com"
- Configuration Default Location:
~/.config/upload-img-github/config.toml
go run imagebed.go ./img/blured.png
- A vim-integration is implemented