This project utilises custom tags to differentiate platform builds. Current supported tags are as follows:
evokeos
f1
To build the app for EvokeOS, run the following from the root directory:
go build -tags evokeos main.go
To run the app for EvokeOS, run the following from the root directory:
go run -tags evokeos main.go
To build the app for F1, run the following from the root directory:
go build -tags f1 main.go
To run the app for F1, run the following from the root directory:
go run -tags f1 main.go
Since we use custom tags here, this means we would also need to customise the test commands
To run all the unit tests for EvokeOS, run the following the root directory:
go test -tags evokeos ./...
To run all the unit tests for F1, run the following the root directory:
go test -tags f1 ./...
Run configurations for Goland users are readily available in the project. For the other IDEs you prefer, feel free to add it in the VCS.