Skip to content

kk-no/go-usi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-usi

This repository is a library for using the USI protocol from Go. For more information on the USI protocol, please see.

Example

main.go

package main

import (
	"context"
	"log"
	"os"

	"github.com/kk-no/go-usi"
)

func main() {
	ctx := context.Background()

	enginePath := os.Getenv("ENGINE_PATH")
	engine, err := usi.New(enginePath)
	if err != nil {
		log.Fatalln(err)
	}

	if err := engine.Connect(ctx); err != nil {
		os.Exit(0)
	}
}

shell

$ go run main.go
$ isready
$ go infinite

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages