go-dcc
A simple, easy to use, NMRA Digital Command Control (DCC) Go implementation, with Raspberry Pi support
File Explorer
- dependabot.yml
- FUNDING.yml
- dccpi.go
- dccpi.go
- dccpi_test.go
- dummy.go
- dummy_test.go
- bad-config.json
- config.json
- .gitignore
- .travis.yml
- config.go
- config_test.go
- controller.go
- controller_test.go
- dcc.go
- dcc_booster_schem.png
- dccpi-board.jpg
- driver.go
- go.mod
- go.sum
- LICENSE
- locomotive.go
- locomotive_test.go
- packet.go
- packet_test.go
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
go get
View Details ▼
go get
Add a dependency package, or download packages in legacy GOPATH mode.
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.
go get {{example.com/pkg}}
Add a specified package to `go.mod` in module-mode or install the package in GOPATH-mode:
go get {{example.com/pkg}}@{{v1.2.3}}
Modify the package with a given version in module-aware mode:
go get {{example.com/pkg}}@{{none}}
Remove a specified package:
go install
View Details ▼
go install
Compile and install packages named by the import paths.
go install
Compile and install the current package:
go install {{path/to/package}}
Compile and install a specific local package:
go install {{golang.org/x/tools/gopls}}@{{latest}}
Install the latest version of a program, ignoring `go.mod` in the current directory:
