https://github.com/blockdaemon/tipe-go
Tipe Golang SDK
https://github.com/blockdaemon/tipe-go
tipe
Last synced: 4 months ago
JSON representation
Tipe Golang SDK
- Host: GitHub
- URL: https://github.com/blockdaemon/tipe-go
- Owner: Blockdaemon
- License: apache-2.0
- Created: 2019-11-13T19:50:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T10:14:32.000Z (almost 5 years ago)
- Last Synced: 2024-11-14T00:32:47.348Z (6 months ago)
- Topics: tipe
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tipe-go
[](https://godoc.org/github.com/Blockdaemon/tipe-go)
Tipe Golang SDK
```bash
go get github.com/Blockdaemon/tipe-go
```## Example
```go
import (
"context"
"fmt""github.com/Blockdaemon/tipe-go"
)type Document struct {
CreatedBy tipe.CreatedBy `json:"createdBy"`
Fields struct {
Description tipe.TextField `json:"description"`
} `json:"fields"`
ID string `json:"id"`
Template tipe.Template `json:"template"`
}func main() {
client := tipe.New(
tipe.Project("test"),
tipe.Key(""),
tipe.Offline(true),
tipe.Port(8000),
)doc := &Document{}
if err := client.Documents.Get(
context.Background(),
doc,
tipe.GetDocumentOptions{
SkuID: "MySkuID",
},
); err != nil {
panic(err)
}fmt.Println(doc.Fields.Description.Value)
}
```