The repo contains everything required. A simple go build
builds
dcc
and go install
puts it in a user's (Go) bin directory.
$ go build
$ go install
The complete build of dcc uses enums` to generate the runningmode,go file.
enums
is a go generate`` tool that uses a Go-like lanauge to define C-like enumerated types. enums generates the Go code to implement the types.
dccuses
enumsto create the file
runningmode.gofile (from
runningmode.enum`).
You can install enums
via,
$ go get github.com/atrn/enums
Given that dcc only has a single enum using enums
is a little
gratutious but I use it elsewhere and its natural to me.
$ go get github.com/atrn/enums
$ go generate
$ go build
$ go install