/cloudinary

context base go-cloudinary wrapper for golang

Primary LanguageGoMIT LicenseMIT

cloudinary

context base go-cloudinary wrapper for golang

Cloudinary

Usage

example

package main

import (
	"bytes"
	"io/ioutil"

	"github.com/kyokomi/cloudinary"
	"golang.org/x/net/context"
)

func main() {
	ctx := context.Background()
    ctx = NewContext(ctx, "cloudinary://<API Key>:<API Secret>@<Cloud name>")

	data, _ := ioutil.ReadFile("<imageFile>")
	cloudinary.UploadStaticImage(ctx, "<name>", bytes.NewBuffer(data))
}

License

MIT