logLevel: debug # must be one of error, warning, info, debug
devices:
- name: one
ip: 192.168.1.101
inventory:
crateID: 0
slotID: 0
- name: two
ip: 192.168.1.102
inventory:
crateID: 0
slotID: 1
inventory:
version: 0
detectorID: 33 # NDLAr
discoverIP: 239.192.1.1
discoverIface: eth0
ip: 192.168.1.100
go get -u golang.org/x/lint/golint
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2
- Install go-swagger. For detailes how to install go-swagger binary on different platforms proceed to the next link
https://goswagger.io/install.html
- Put swagger annotation tags into source file describing your APIs
- Generate swagger specificatioin file by typing
- When your start your server API docs will be available on
http://localhost:your_port/swagger/