Skip to content

Conversation

@joeriddles
Copy link

@joeriddles joeriddles commented Oct 23, 2025

Currently the below code will panic, even though it does not appear that the /platform/regions endpoint requires authentication.

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/superfly/fly-go/flaps"
)

func main() {
	ctx := context.Background()
	flap, err := flaps.NewWithOptions(ctx, flaps.NewClientOpts{})
	if err != nil {
		log.Fatal(err)
	}
	regions, err := flap.GetRegions(ctx, "")
	fmt.Print(regions)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant