Go Build Status

More examples and additional documentation for the Go library can be found on GitHub at: https://github.com/parkr/imgix-go.

This library was created and is maintained by Parker Moore.

Example

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

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

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

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

More tools