Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 393 Bytes

how-to-use-api.md

File metadata and controls

29 lines (22 loc) · 393 Bytes

How to use API?

Get Library

go get -u github.com/B1NARY-GR0UP/openalysis

Example

package main

import (
	"context"
	
	"github.com/B1NARY-GR0UP/openalysis/api"
)

func main() {
	err := api.ReadInConfig("config.yaml")
	if err != nil {
		panic("failed to read config file")
	}
	api.Init()
	api.Start(context.Background())
	// api.Restart(context.Background())
}