Installation

Requirements

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

Install

go get gitlab.com/tranchida/gocamel@v0.12.2

Or add to go.mod:

require gitlab.com/tranchida/gocamel v0.12.2

To use optional components, install the individual modules:

go get gitlab.com/tranchida/gocamel/components/kafka@v0.12.2
go get gitlab.com/tranchida/gocamel/components/grpc@v0.12.2
go get gitlab.com/tranchida/gocamel/components/redis@v0.12.2
go get gitlab.com/tranchida/gocamel/components/nats@v0.12.2

Then:

go mod tidy

Verify

package main

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

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

Run:

go run test.go