From 3e909fcf4e2dea2be3d790ad5efed7e722d9d9ab Mon Sep 17 00:00:00 2001 From: Marin Nozhchev Date: Tue, 16 Sep 2025 17:15:29 +0300 Subject: [PATCH] docs: fix README.md --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 23a11b1..0f0853e 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,21 @@ Use ```-help``` to see additional options ## Usage as a library ```go +package main + import ( - "github.com/murfffi/getaduck" - "fmt" + "fmt" + + "github.com/murfffi/getaduck/download" ) func main() { - // Download the latest DuckDB release for your platform - duckdbPath, err := getaduck.Download(getaduck.Options{}) - if err != nil { - panic(err) - } - fmt.Println("Downloaded DuckDB to:", duckdbPath) + // Download the latest DuckDB release for your platform + res, err := download.Do(download.DefaultSpec()) + if err != nil { + panic(err) + } + fmt.Println("Downloaded DuckDB to:", res.OutputFile) } ```