Skip to content

Go library client for using the Loklak API

Notifications You must be signed in to change notification settings

yukiisbored/loklak_api_go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loklak API Go

Build Status

This implements the API SDK for loklak server using golang. This is a Go client library for accessing the loklak API directly.

This is still a work in progress and hasn't been packaged into the loklak module yet. You can get this by doing

go get github.com/loklak/loklak_api_go

Installing

Fetch the required dependencies

  • go get github.com/hokaccha/go-prettyjson

Built in libraries that are being used are

  • net/http
  • net/url
  • fmt
  • os
  • encoding/json

Documentation

The loklak api for go can be used in the following manner

import "github.com/loklak/loklak_api_go"

func main() {
	loklakObject := new(Loklak)
	loklakObject.Connect("http://loklak.org/")
	// Note that the Connect step is necessary, you have to mention the loklak server you'd like to connect to.
	helloResponse := loklakObject.hello()
	fmt.Println(helloResponse)
}

About

Go library client for using the Loklak API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%