Giter Club home page Giter Club logo

utopialib-go's Introduction

logo

Utopia Ecosystem API wrapper written in Golang

Docs

GoDoc go-report Build Status

WARN! utopiago v1 deprecated, use v2 instead

Install

go get github.com/Sagleft/utopialib-go/v2

then

import (
	utopiago "github.com/Sagleft/utopialib-go/v2"
)

Usage example

package main

import (
	"fmt"
	"log"

	utopiago "github.com/Sagleft/utopialib-go/v2"
)

func main() {
	client := utopiago.NewUtopiaClient(utopiago.Config{
		Protocol: "http",
		Port:     22000,
		WsPort:   25000,
	})

	// print own contact data
	contactData, err := client.GetOwnContact()
	if err != nil {
		log.Fatalln(err)
	}
	fmt.Println(contactData)

	// print sync progress
	syncProgress, err := client.GetSyncProgress()
	if err != nil {
		log.Fatalln(err)
	}
	fmt.Println("sync status:", syncProgress, "%")
}

How can this be used?

  • creating a web service that processes client requests;
  • creation of a payment service;
  • development of a bot for the channel;
  • utility for working with uNS;
  • experiments to explore web3.0;

Projects that use this library

Full list: https://github.com/Sagleft/utopialib-go/network/dependents

Other projects can be found here: https://udocs.gitbook.io/utopia-api/utopia-api/examples-of-projects

generate mocks

just run:

make generate-mocks

utopialib-go's People

Contributors

sagleft avatar utopistman avatar

Watchers

 avatar  avatar

Forkers

ctrcat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.