We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a73856 commit 6a5c90dCopy full SHA for 6a5c90d
1 file changed
README.md
@@ -18,18 +18,21 @@ Use ```-help``` to see additional options
18
## Usage as a library
19
20
```go
21
+package main
22
+
23
import (
- "github.com/murfffi/getaduck"
- "fmt"
24
+ "fmt"
25
26
+ "github.com/murfffi/getaduck/download"
27
)
28
29
func main() {
- // Download the latest DuckDB release for your platform
- duckdbPath, err := getaduck.Download(getaduck.Options{})
- if err != nil {
30
- panic(err)
31
- }
32
- fmt.Println("Downloaded DuckDB to:", duckdbPath)
+ // Download the latest DuckDB release for your platform
+ res, err := download.Do(download.DefaultSpec())
+ if err != nil {
33
+ panic(err)
34
+ }
35
+ fmt.Println("Downloaded DuckDB to:", res.OutputFile)
36
}
37
```
38
0 commit comments