From d6feb813fada0a67e173ce8a0f287e23600cd66f Mon Sep 17 00:00:00 2001 From: Byron Wang Date: Wed, 28 May 2025 17:27:50 +0800 Subject: [PATCH] add readme --- README.md | 26 ++++++++++++++++++++++++++ examples/local_oss/main.go | 20 -------------------- 2 files changed, 26 insertions(+), 20 deletions(-) delete mode 100644 examples/local_oss/main.go diff --git a/README.md b/README.md index e6d0777..f81b56b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,28 @@ # go-cloud-kit A library and tools for open cloud development in Go. + + +```go + +s, err := factory.Load("local", oss.OSSArgs{ + Local: &oss.Local{ + Path: "/local/path", + }, +}) + +if err != nil { + return err +} +s.List("/object1") + +``` + +## Installation + +``` + go get github.com/langgenius/dify-cloud-kit +``` + +## Available Blobs + + diff --git a/examples/local_oss/main.go b/examples/local_oss/main.go deleted file mode 100644 index 521de66..0000000 --- a/examples/local_oss/main.go +++ /dev/null @@ -1,20 +0,0 @@ -package main - -import ( - "log" - - "github.com/langgenius/dify-cloud-kit/oss" - "github.com/langgenius/dify-cloud-kit/oss/factory" -) - -func main() { - s, err := factory.Load("local", oss.OSSArgs{ - Local: &oss.Local{ - Path: "/sdad1/13ad13", - }, - }) - if err != nil { - log.Panic(err) - } - s.List("/test1") -}