Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 489 Bytes

USAGE.md

File metadata and controls

28 lines (25 loc) · 489 Bytes
package main

import (
	"context"
	"github.com/log10-io/log10go"
	"log"
	"os"
)

func main() {
	s := log10go.New(
		log10go.WithSecurity(os.Getenv("LOG10_TOKEN")),
	)
	var xLog10Organization *string = log10go.String("<value>")
	ctx := context.Background()
	res, err := s.Sessions.Create(ctx, xLog10Organization)
	if err != nil {
		log.Fatal(err)
	}
	if res.Object != nil {
		// handle response
	}
}