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 ( import (
"fmt" "fmt"
"os"
"gitea.com/webb/teal" "gitea.com/webb/teal"
) )
func main() { func main() {
client := teal.Client{ client := teal.Client{
UserAgent: "teal" UserAgent: "teal",
UploadKey: "key" UploadKey: "key",
} }
file, _ := os.Open("glenda.png") file, _ := os.Open("glenda.png")
url, _ := client.UploadFile(file, "glenda.png") url, _ := client.UploadFile(file, "glenda.png")
fmt.Println(url) fmt.Println(url)