Skip to content
/ sdk-go Public

SDK go package for interacting with NuID APIs

License

Notifications You must be signed in to change notification settings

NuID/sdk-go

Repository files navigation

NuID SDK for Go

This repo provides a library for interacting with NuID APIs within go applications.

Read the latest package docs or checkout the platform docs for API docs, guides, video tutorials, and more.

Install

GO111MODULE=on go get github.com/NuID/sdk-go

Usage

A fully working go server example can be found in our examples repo.

Visit the Integrating with NuID guide for a detailed walk-through on your first NuID integration.

Development

You'll want to download docker to run the tests, as we depend on the @nuid/cli npm package to provide a CLI you can shell out to in the tests for generating zk crypto. After checking out the repo, run make build run to install dependencies and create the docker environment. Then, run make test to run the tests inside the running container. You can also run make shell to get a prompt in the container.

make clean will stop and destroy the container and image. make build run will rebuild the image and run the container.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/NuID/sdk-go.

License

The library is available as open source under the terms of the MIT License.