To use optional components, install the individual modules:
go get github.com/tranchida/gocamel/components/kafka@v0.20.0
go get github.com/tranchida/gocamel/components/grpc@v0.20.0
go get github.com/tranchida/gocamel/components/redis@v0.20.0
go get github.com/tranchida/gocamel/components/nats@v0.20.0
Then:
go mod tidy
Verify
packagemainimport("fmt""github.com/tranchida/gocamel")funcmain(){ctx:=gocamel.NewCamelContext()fmt.Println("GoCamel context created successfully!")}