Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 409 Bytes

USAGE.md

File metadata and controls

28 lines (23 loc) · 409 Bytes
package main

import (
	"context"
	unkeygo "github.com/unkeyed/unkey-go"
	"log"
)

func main() {
	ctx := context.Background()

	s := unkeygo.New(
		unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
	)

	res, err := s.Liveness.V1Liveness(ctx)
	if err != nil {
		log.Fatal(err)
	}
	if res.Object != nil {
		// handle response
	}
}