avail-go-sdk

command module
v0.2.0-rc5 Latest Latest
Warning

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

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

README

avail-go-sdk

TODO

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.InfoLevel // Default to INFO 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 .

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