This is a rewrite of Mycroft-core in Go. Preliminary tests show large speed improvements over the c# implementation.
This repository is cloned in a manner similar to other go packages:
- Go code is generally stored in one folder. Create a folder for your go code if you do not have one already.
- Make sure the GOPATH environment variable is set to this folder.
Use the command
export GOPATH=ABSOLUTE_PATH_HERE
. - Get the code using
go get github.com/robmcl4/Mycroft-Core-Go/mycroft
After this completes the code is available at $GOPATH/src/github.com/robmcl4/Mycroft-Core-Go/mycroft
.
This is a full git repository, edit the code here and commit changes here.
A binary was also built as a part of go get
, which is available in $GOPATH/bin
Build using go install
. This can take two forms:
- If the current working directory is within the Mycroft-Core-Go git repository, run
go install ./...
- Otherwise, use
go install github.com/robmcl4/Mycroft-Core-Go/mycroft
After building, run with the command $GOPATH/bin/mycroft
. Use the --help
option for argument usage.