Fix again

This commit is contained in:
webb 2020-07-19 08:16:01 -04:00
parent e74a34516a
commit 7186231587
No known key found for this signature in database
GPG Key ID: 8B6F0D2784D22DB2
1 changed files with 5 additions and 4 deletions

View File

@ -41,15 +41,16 @@ func main() {
```
import (
"fmt"
"os"
"gitea.com/webb/teal"
)
func main() {
client := teal.Client{
UserAgent: "teal"
UploadKey: "key"
UserAgent: "teal",
UploadKey: "key",
}
file, _ := os.Open("glenda.png")
url, _ := client.UploadFile(file, "glenda.png")
fmt.Println(url)