Skip to content

piero-vic/go-linkding

Repository files navigation

go-linkding

Go client library for the Linkding API.

Installation

go get -u github.com/piero-vic/go-linkding

Getting Started

List Bookmarks

package main

import (
	"fmt"

	"github.com/piero-vic/go-linkding"
)

func main() {
	client := linkding.NewClient("https://linkding.example.org", "secret-token")

	params := linkding.ListBookmarksParams{
		Limit: 15,
	}

	response, err := client.ListBookmarks(params)
	if err != nil {
		fmt.Println(err.Error())
		return
	}

	fmt.Println(response.Results)
}

About

Go client for the Linkding API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages