mirror of
https://github.com/langgenius/dify-cloud-kit.git
synced 2026-07-18 18:44:27 -04:00
add readme
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user