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) + } +}