all repos — gopipe @ cec307a9e07ec65951325dcc377f9c24c25ac94b

Embed YouTube videos on Telegram, Discord and more!

src/globals/globals.go (view raw)

 1package globals
 2
 3import (
 4	"bytes"
 5	"net/http"
 6	"time"
 7
 8	"github.com/birabittoh/myks"
 9	"github.com/kkdai/youtube/v2"
10	"github.com/utking/extemplate"
11)
12
13var (
14	Debug bool
15	Proxy bool
16	Port  string
17
18	C  = http.DefaultClient
19	YT = youtube.Client{}
20	XT = extemplate.New()
21
22	KS  = myks.New[youtube.Video](3 * time.Hour)
23	PKS *myks.KeyStore[bytes.Buffer]
24)