Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 517 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 517 Bytes

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