generator-viam-go-module
v0.0.3
Published
Generate a go viam module
Downloads
2
Readme
generator-go-module
Autogenerate the boilerplate for a viam go module using the Yeoman scaffolding library.
Usage
Make sure you have npm installed on your machine.
Install Yo:
npm install -g yo
Install the generator:
npm install -g generator-viam-go-module
To create your module, run:
yo viam-go-module
and follow the prompts to create a module.
Once the module is created, run
go mod tidy
Then, add defintions for the function stubs prior to building the module.
Note that Board, Input, and Camera modules are currently unsupported.