A simple library to upload an image on imgur
go get github.com/dlion/goImgur
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)
}
Upload(string, string) (*string, error)
- Domenico Luciani
- http://dlion.it
- [email protected]
MIT © Domenico Luciani