package
module
Version:
v0.0.0-...-132b780
Opens a new window with list of versions in this module.
Published: May 25, 2015
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
goImgur
A simple library to upload an image on imgur
Install
go get github.com/dlion/goImgur
Usage
package main
import (
"fmt"
"log"
"github.com/dlion/goImgur"
)
func main() {
str, err := goImgur.Upload("pathToImage.png", "clientID")
if err != nil {
log.Panic(err)
}
fmt.Println(*str)
}
Prototype
Upload(string, string) (*string, error)
Author
License
MIT © Domenico Luciani
Documentation
¶
*
- Upload a file image
- path is a file path string
- clientID is a public clientID string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.