From 29857ec95e6f5e2f0cb7842adc9e2875c5f5577e Mon Sep 17 00:00:00 2001 From: luxcgo Date: Wed, 5 Apr 2023 01:06:28 +0800 Subject: [PATCH] foundation: biliup add example --- foundation/biliup/example/main.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 foundation/biliup/example/main.go diff --git a/foundation/biliup/example/main.go b/foundation/biliup/example/main.go new file mode 100644 index 0000000..ef8c70c --- /dev/null +++ b/foundation/biliup/example/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "fmt" + + "github.com/go-olive/olive/foundation/biliup" +) + +func main() { + err := biliup.New(biliup.Config{ + CookieFilepath: "/Users/xxx/cookies.json", + VideoFilepath: `/video.mp4`, + Threads: 2, + MaxBytesPerSecond: 0, + }).Upload() + if err != nil { + fmt.Println(err) + } +}