avail-go-sdk

command module
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

avail-go-sdk

Note

This repo uses mdbook to generate documentation and just to run all the shell commands. You can install both tools by running and executing ./install_dependencies.sh. It should work as long as you have cargo installed.

Release Strategy

This project uses GitHub Flow to manage release and branches.

Documentation

Link to documentation (web preview of examples)

Logging

To enable logging add this to the main function.

// Set log level based on the environment variable
level, err := logrus.ParseLevel(os.Getenv("LOG_LEVEL"))
if err != nil {
    level = logrus.DebugLevel // Default to Debug if parsing fails
}
logrus.SetLevel(level)
logrus.SetFormatter(&logrus.TextFormatter{FullTimestamp: true})

And run go command with LOG_LEVEL set to debug

LOG_LEVEL=debug go run .

Commands

just # Runs `go run .`

just test # Run tests

just book-serve # Build and serve the documentation

just book-deploy # Deploys the documentation

just fmt # formats files

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL