Installation

Requirements

  • Go 1.27.0 or later
  • Module-aware Go project (go.mod)

Install

go get github.com/tranchida/gocamel@v0.20.0

Or add to go.mod:

require github.com/tranchida/gocamel v0.20.0

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

package main

import (
    "fmt"
    "github.com/tranchida/gocamel"
)

func main() {
    ctx := gocamel.NewCamelContext()
    fmt.Println("GoCamel context created successfully!")
}

Run:

go run test.go