A Habitify API client for Go
package main
import (
"context"
"fmt"
"github.com/kentakozuka/go-habitify"
)
func main() {
cli := habitify.New("YOUR_API_KEY")
habits, err := cli.ListHabits(context.Background())
if err != nil {
panic(err)
}
for _, habit := range habits {
fmt.Println(habit.Name)
}
}