Install
Latest version: v1.9.1
Go Install
This is the recommended way to use Goverter.
Install the binary
bash$ go install github.com/jmattheis/goverter/cmd/goverter@v1.9.1Run the binary.
bash$ goverter --help
This method installs the binary inside your $GOPATH/bin, ensure that this path is on your $PATH.
Go Run
You can go run goverter like this:
bash
$ go run github.com/jmattheis/goverter/cmd/goverter@v1.9.1 --helpThis method is the easiest, as you don't have to install a binary on your system. The command may take some time to execute, because Go has to compile goverter before executing it. Go will cache the build process, but it may be invalidated sometimes.
Dependency
Create a go modules project if you haven't done so already
bash$ go mod init module-nameAdd goverter as dependency:
bash$ go get github.com/jmattheis/goverter@v1.9.1Run the binary.
bash$ go run github.com/jmattheis/goverter/cmd/goverter --help
This method allows you to have the goverter dependency defined inside the go.mod. The benefit is that all developers will use the same goverter version.