webthing-go

http://purl.org/webthing-go

MPL-2.0 License

Stars
8

WEBTHING-GO

USAGE

To get started look at "example" directory:

go version
#| go version go1.10.4 linux/amd64

go get github.com/rzr/webthing-go

cd ~/go/src/github.com/rzr/webthing-go
go run example/simplest-webthing-go/simplest-thing.go
#| Listening: :8888

curl http://localhost:8888/properties
#| {"on":false}

curl -X PUT --data '{"on": true}'  http://localhost:8888/properties/on
#| {"on":true}

curl http://localhost:8888/properties/on
#| {"on":true}

curl http://localhost:8888 | jq -M .
#| { ...
#| "title": "ActuatorExample"
#| }

To import published module just use this alias:

import (
	webthing "github.com/rzr/webthing-go"
)

RESOURCES

Package Rankings
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Codacy Badge GitHub forks license GitHub version pulls Automated Builds Build Status Go Report Card codebeat badge