Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.19 KB

Github Image Host

Feature and Functionality

  • Input: Image Path (Local)
  • Output: Image URL (Github Repo)

Dependency

  • Github Api: github.com/google/go-github/v55/github
  • Toml: github.com/BurntSushi/toml

Usage

1. Github Setup

  1. Github Repo (Public) Setup
  2. Token Generation

2. Program Configuration

  1. Copy Configurations
cp config.toml.example config.toml
  1. 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

3. Run

go run imagebed.go ./img/blured.png

Vim-Integration