Skip to content

SimiPro/cloudinary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

context base go-cloudinary wrapper for golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%