Skip to content

Image bed on Github, implemented via Golang with vim integration solution.

Notifications You must be signed in to change notification settings

ChrisVicky/image-bed-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Image bed on Github, implemented via Golang with vim integration solution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages