github.com/imgix/imgix-go

A Go client library for generating image URLs with imgix


Keywords
go, golang, images, imgix, signing-imgix-urls, src, srcset, url-builder
License
Other
Install
go get github.com/imgix/imgix-go

Documentation

imgix logo

imgix-go is a client library for generating image URLs with imgix.

Version Build Status Godoc License


Installation

go get github.com/imgix/imgix-go

Usage

package main

import (
    "fmt"
    "net/url"
    "github.com/imgix/imgix-go"
)

func main() {
    client := imgix.NewClient("mycompany.imgix.net")

    fmt.Println(client.Path("/myImage.jpg"))

    fmt.Println(client.PathWithParams("/myImage.jpg", url.Values{
        "w": []string{"400"},
        "h": []string{"400"},
    }))
}