goImgur

package module
v0.0.0-...-132b780 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2015 License: MIT Imports: 5 Imported by: 0

README

goImgur Build Status

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(path string, clientID string) (*string, error)

*

  • Upload a file image
  • path is a file path string
  • clientID is a public clientID string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL