config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenNotFoundError = errors.New("token not found")
	Token              string
	WG                 *sync.WaitGroup
)

Functions

func Get

func Get() *koanf.Koanf

func GetWaitGroup

func GetWaitGroup() *sync.WaitGroup

func NewConfig

func NewConfig() *koanf.Koanf

func RequestTelegramBot

func RequestTelegramBot(method string, options map[string][]string) (*http.Response, error)

func SetWaitGroup

func SetWaitGroup(wg *sync.WaitGroup) *sync.WaitGroup

Types

type ResponseBody

type ResponseBody struct {
	OK     bool                   `json:"ok"`
	Result map[string]interface{} `json:"result"`
}

Jump to

Keyboard shortcuts

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