Skip to content

Instantly share code, notes, and snippets.

View triadmoko's full-sized avatar
🏠
Working from home

TDF triadmoko

🏠
Working from home
  • TDF Programming
  • Indonesia
View GitHub Profile
@triadmoko
triadmoko / oauth2_integration.go
Created July 16, 2022 14:23 — forked from tuxlinuxien/oauth2_integration.go
gin gonic oauth2 integration
package main
import (
"bytes"
"encoding/json"
"github.com/gin-gonic/gin"
"golang.org/x/oauth2"
"golang.org/x/oauth2/bitbucket"
"golang.org/x/oauth2/github"
"golang.org/x/oauth2/google"
@poindextrose
poindextrose / glcoud-signed-url.go
Last active January 22, 2024 22:59
Example on how to create a signed URL on Google Cloud Storage with Go
package main
import (
"fmt"
"time"
"google.golang.org/cloud/storage"
)
const (