Skip to content

kentakozuka/go-habitify

Repository files navigation

go-habitify

Go Reference

A Habitify API client for Go

Example

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)
	}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages