Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

API example: Go + net/http

This small application demonstrates how you can set up a web server using Go and net/http, along with RESTful routes, to accept form submissions from a modern-treasury-js enabled application without the hassle of handling sensitive data.

To achieve this, the example utilizes the official Go client library for the Modern Treasury API.

It's important to note that using the net/http package is not mandatory. In this example, it's used to organize different API actions into separate application routes. However, you can just as easily implement these API actions within another application framework if you prefer.

Use

Local

  1. Start the server
$ go get .
$ go run app.go
  1. Open http://localhost:9001