package sample import ( "golang.org/x/oauth2" "golang.org/x/oauth2/google" "google.golang.org/api/calendar/v3" "fmt" ) const CALENDARID string = "yourcalendarID@group.calendar.google.com" func sample() error { config, err := google.JWTConfigFromJSON(secretJsonBytes, calendar.CalendarScope) if err != nil { // error handle } client := config.Client(oauth2.NoContext) srv, err := calendar.New(client)

