Categorygithub.com/ericdeansanchez/imgix-go
repositorypackage
1.0.0
Repository: https://github.com/ericdeansanchez/imgix-go.git
Documentation: pkg.go.dev

# README

imgix-go

This is a Go implementation of an imgix url-building library outlined by imgix-blueprint.

Godoc

Build Status

Installation

It's a go package. Do this in your terminal:

go get github.com/imgix/imgix-go

Usage

Something like this:

package main

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

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

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

    // Throw some params in there!
    fmt.Println(client.PathWithParams("/myImage.jpg", url.Values{
        "w": []string{"400"},
        "h": []string{"400"},
    }))
}

That's it at a basic level. More fun features though!