ACOR Documentation

Installation

Prerequisites

Install the Package

go get -u github.com/skyoo2003/acor

Verify Installation

Create a test file to verify ACOR is installed correctly:

package main

import (
    "fmt"
    "github.com/skyoo2003/acor/pkg/acor"
)

func main() {
    args := &acor.AhoCorasickArgs{
        Addr: "localhost:6379",
        Name: "test",
    }

    ac, err := acor.Create(args)
    if err != nil {
        panic(err)
    }
    defer ac.Close()

    fmt.Println("ACOR installed successfully!")
}

CLI Installation

Install the command-line tool:

go install github.com/skyoo2003/acor/cmd/acor@latest

Verify the CLI:

acor --help

Next Steps