Skip to content

Instantly share code, notes, and snippets.

View gordcurrie's full-sized avatar

Gord Currie gordcurrie

View GitHub Profile
@gordcurrie
gordcurrie / build.sh
Last active December 12, 2020 18:52
Using envsubst to generate code.
#!/bin/bash
# if called with no params sets the value of $1 to "World"
if [ -z $1 ]
then
set "World"
fi
# sets the env var used in template
export yourName=$1 \
@gordcurrie
gordcurrie / go_shopify_pagination_example_customer.go
Created September 26, 2020 19:23
An example for customers, which has not implemented a ListWithPagniation function yet.
package main
import (
"fmt"
goshopify "github.com/bold-commerce/go-shopify/v3"
)
func main() {
client := goshopify.NewClient(goshopify.App{}, "SHOP_NAME", "API_TOKEN", goshopify.WithVersion("2020-01"))
package main
import (
"fmt"
goshopify "github.com/bold-commerce/go-shopify/v3"
)
func main() {
client := goshopify.NewClient(goshopify.App{}, "SHOP_NAME", "API_TOKEN", goshopify.WithVersion("2020-07"))