Skip to content

Instantly share code, notes, and snippets.

@barthr
barthr / action.go
Last active July 22, 2018 16:42
Wrapper for clean handlers in Go
package web
import (
"bytes"
"encoding/json"
"io"
"net/http"
)
type errorResponse struct {
@jakexks
jakexks / aws.go
Created August 2, 2016 08:56
Proxy in AWS SDK GO
package main
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"net/http"
"net/url"
)