all repos — gopipe @ aeba99cbfb8bc6d8fe24e936e223a4ad9ee1815f

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)