diff --git a/content/v2/ai-sentiment-analysis-api-tutorial.md b/content/v2/ai-sentiment-analysis-api-tutorial.md index 45bb479e..b6b43589 100644 --- a/content/v2/ai-sentiment-analysis-api-tutorial.md +++ b/content/v2/ai-sentiment-analysis-api-tutorial.md @@ -664,9 +664,9 @@ import ( "net/http" "strings" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/kv" - "github.com/fermyon/spin/sdk/go/v2/llm" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/kv" + "github.com/spinframework/spin-go-sdk/v2/llm" ) type sentimentAnalysisRequest struct { diff --git a/content/v2/go-components.md b/content/v2/go-components.md index 26fb2d20..169a9830 100644 --- a/content/v2/go-components.md +++ b/content/v2/go-components.md @@ -26,7 +26,7 @@ Using TinyGo to compile components for Spin is currently required, as the > All examples from this page can be found in [the Spin Go SDK repository on GitHub](https://github.com/spinframework/spin-go-sdk/tree/main/examples). -[**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) +[**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2) ## Versions @@ -52,7 +52,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { @@ -124,7 +124,7 @@ import ( "net/http" "os" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { @@ -217,7 +217,7 @@ package main import ( "fmt" - "github.com/fermyon/spin/sdk/go/v2/redis" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { @@ -309,8 +309,8 @@ import ( "net/http" "os" - spin_http "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/redis" + spin_http "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { diff --git a/content/v2/http-outbound.md b/content/v2/http-outbound.md index 290a841e..2009aa8c 100644 --- a/content/v2/http-outbound.md +++ b/content/v2/http-outbound.md @@ -132,13 +132,13 @@ You can find a complete example for using outbound HTTP in the [Python SDK repos {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/http) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/http) -HTTP functions are available in the `github.com/fermyon/spin/sdk/go/v2/http` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/http) The general function is named `Send`, but the Go SDK also surfaces individual functions, with request-specific parameters, for the `Get` and `Post` operations. For example: +HTTP functions are available in the `github.com/spinframework/spin-go-sdk/v2/http` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/http) The general function is named `Send`, but the Go SDK also surfaces individual functions, with request-specific parameters, for the `Get` and `Post` operations. For example: ```go import ( - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) res1, err1 := spinhttp.Get("https://random-data-api.fermyon.app/animals/json") diff --git a/content/v2/http-trigger.md b/content/v2/http-trigger.md index c5e463a5..844c18d8 100644 --- a/content/v2/http-trigger.md +++ b/content/v2/http-trigger.md @@ -305,7 +305,7 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/http) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/http) In Go, you register the handler as a callback in your program's `init` function. Call `spinhttp.Handle`, passing your handler as the sole argument. Your handler takes a `http.Request` record, from the standard `net/http` package, and a `ResponseWriter` to construct the response. @@ -318,7 +318,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/content/v2/key-value-store-tutorial.md b/content/v2/key-value-store-tutorial.md index 659e95d8..0b6a2a78 100644 --- a/content/v2/key-value-store-tutorial.md +++ b/content/v2/key-value-store-tutorial.md @@ -330,8 +330,8 @@ import ( "net/http" "fmt" - spin_http "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/kv" + spin_http "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/kv" ) func init() { diff --git a/content/v2/kv-store-api-guide.md b/content/v2/kv-store-api-guide.md index 68ec37fe..ef04fcab 100644 --- a/content/v2/kv-store-api-guide.md +++ b/content/v2/kv-store-api-guide.md @@ -148,12 +148,12 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/kv) +> [**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/kv) -Key value functions are provided by the `github.com/fermyon/spin/sdk/go/v2/kv` module. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/kv) For example: +Key value functions are provided by the `github.com/spinframework/spin-go-sdk/v2/kv` module. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/kv) For example: ```go -import "github.com/fermyon/spin/sdk/go/v2/kv" +import "github.com/spinframework/spin-go-sdk/v2/kv" func example() error { store, err := kv.OpenStore("default") diff --git a/content/v2/language-support-overview.md b/content/v2/language-support-overview.md index 49dd329f..2c5b6e3d 100644 --- a/content/v2/language-support-overview.md +++ b/content/v2/language-support-overview.md @@ -85,7 +85,7 @@ This page contains information about language support for Spin features: {{ startTab "TinyGo"}} -**[📄 Visit the TinyGo Spin SDK reference documentation](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) to see specific modules, functions, variables and syntax relating to the following TinyGo SDK.** +**[📄 Visit the TinyGo Spin SDK reference documentation](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2) to see specific modules, functions, variables and syntax relating to the following TinyGo SDK.** | Feature | SDK Supported? | |-----|-----| diff --git a/content/v2/quickstart.md b/content/v2/quickstart.md index 00a8b6fa..489c4cd9 100644 --- a/content/v2/quickstart.md +++ b/content/v2/quickstart.md @@ -661,7 +661,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/content/v2/rdbms-storage.md b/content/v2/rdbms-storage.md index 690416d2..6455f468 100644 --- a/content/v2/rdbms-storage.md +++ b/content/v2/rdbms-storage.md @@ -129,9 +129,9 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) +> [**Want to go straight to the reference documentation?** Find it here.](github.com/spinframework/spin-go-sdk/v2) -MySQL functions are available in the `github.com/fermyon/spin/sdk/go/v2/mysql` package, and PostgreSQL in `github.com/fermyon/spin/sdk/go/v2/pg`. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) +MySQL functions are available in the `github.com/spinframework/spin-go-sdk/v2/mysql` package, and PostgreSQL in `github.com/spinframework/spin-go-sdk/v2/pg`. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2) The package follows the usual Go database API. Use `Open` to return a connection to the database of type `*sql.DB` - see the [Go standard library documentation](https://pkg.go.dev/database/sql#DB) for usage information. For example: @@ -144,8 +144,8 @@ import ( "net/http" "os" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/pg" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/pg" ) type Pet struct { diff --git a/content/v2/redis-outbound.md b/content/v2/redis-outbound.md index 1a59e08f..36eeeaee 100644 --- a/content/v2/redis-outbound.md +++ b/content/v2/redis-outbound.md @@ -139,13 +139,13 @@ You can find a complete Python code example for using outbound Redis from an HTT {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/redis) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/redis) -Redis functions are available in the `github.com/fermyon/spin/sdk/go/v2/redis` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/redis) The function names are TitleCased. For example: +Redis functions are available in the `github.com/spinframework/spin-go-sdk/v2/redis` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/redis) The function names are TitleCased. For example: ```go import ( - "github.com/fermyon/spin/sdk/go/v2/redis" + "github.com/spinframework/spin-go-sdk/v2/redis" ) rdb := redis.NewClient(addr) diff --git a/content/v2/redis-trigger.md b/content/v2/redis-trigger.md index 5e30fefe..e05c2862 100644 --- a/content/v2/redis-trigger.md +++ b/content/v2/redis-trigger.md @@ -114,7 +114,7 @@ class InboundRedis(exports.InboundRedis): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/redis) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/redis) In Go, you register the handler as a callback in your program's `init` function. Call `redis.Handle` (from the Spin SDK `redis` package), passing your handler as the sole argument. Your handler takes a single byte slice (`[]byte`) argument, and may return an error or `nil`. @@ -128,7 +128,7 @@ package main import ( "fmt" - "github.com/fermyon/spin/sdk/go/v2/redis" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { diff --git a/content/v2/serverless-ai-api-guide.md b/content/v2/serverless-ai-api-guide.md index e650665a..82be09e4 100644 --- a/content/v2/serverless-ai-api-guide.md +++ b/content/v2/serverless-ai-api-guide.md @@ -177,9 +177,9 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/llm) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/llm) -Serverless AI functions are available in the `github.com/fermyon/spin/sdk/go/v2/llm` package. See [Go Packages](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/llm) for reference documentation. For example: +Serverless AI functions are available in the `github.com/spinframework/spin-go-sdk/v2/llm` package. See [Go Packages](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/llm) for reference documentation. For example: ```go package main @@ -188,8 +188,8 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/llm" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/llm" ) func init() { diff --git a/content/v2/sqlite-api-guide.md b/content/v2/sqlite-api-guide.md index cf2232d7..1277b626 100644 --- a/content/v2/sqlite-api-guide.md +++ b/content/v2/sqlite-api-guide.md @@ -174,7 +174,7 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/sqlite) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/sqlite) The Go SDK is implemented as a driver for the standard library's [database/sql](https://pkg.go.dev/database/sql) interface. @@ -185,8 +185,8 @@ import ( "encoding/json" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/sqlite" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/sqlite" ) type Todo struct { diff --git a/content/v2/variables.md b/content/v2/variables.md index 2884fadd..05c0c436 100644 --- a/content/v2/variables.md +++ b/content/v2/variables.md @@ -191,9 +191,9 @@ class IncomingHandler(IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/variables) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/variables) -The function is available in the `github.com/fermyon/spin/sdk/go/v2/variables` package and is named `Get`. See [Go package](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/variables) for reference documentation. +The function is available in the `github.com/spinframework/spin-go-sdk/v2/variables` package and is named `Get`. See [Go package](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/variables) for reference documentation. ```go import ( @@ -201,8 +201,8 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/variables" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/variables" ) func init() { diff --git a/content/v3/ai-sentiment-analysis-api-tutorial.md b/content/v3/ai-sentiment-analysis-api-tutorial.md index 9633054d..aab9b68e 100644 --- a/content/v3/ai-sentiment-analysis-api-tutorial.md +++ b/content/v3/ai-sentiment-analysis-api-tutorial.md @@ -632,9 +632,9 @@ import ( "net/http" "strings" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/kv" - "github.com/fermyon/spin/sdk/go/v2/llm" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/kv" + "github.com/spinframework/spin-go-sdk/v2/llm" ) type sentimentAnalysisRequest struct { diff --git a/content/v3/go-components.md b/content/v3/go-components.md index 9c3262a8..c8bc0d8f 100644 --- a/content/v3/go-components.md +++ b/content/v3/go-components.md @@ -26,7 +26,7 @@ Using TinyGo to compile components for Spin is currently required, as the > All examples from this page can be found in [the Spin Go SDK repository on GitHub](https://github.com/spinframework/spin-go-sdk/tree/main/examples). -[**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) +[**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2) ## Versions @@ -52,7 +52,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { @@ -122,7 +122,7 @@ import ( "net/http" "os" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { @@ -213,7 +213,7 @@ package main import ( "fmt" - "github.com/fermyon/spin/sdk/go/v2/redis" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { @@ -302,8 +302,8 @@ import ( "net/http" "os" - spin_http "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/redis" + spin_http "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { diff --git a/content/v3/http-outbound.md b/content/v3/http-outbound.md index 272110cf..f4951426 100644 --- a/content/v3/http-outbound.md +++ b/content/v3/http-outbound.md @@ -131,13 +131,13 @@ You can find a complete example for using outbound HTTP in the [Python SDK repos {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/http) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/http) -HTTP functions are available in the `github.com/fermyon/spin/sdk/go/v2/http` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/http) The general function is named `Send`, but the Go SDK also surfaces individual functions, with request-specific parameters, for the `Get` and `Post` operations. For example: +HTTP functions are available in the `github.com/spinframework/spin-go-sdk/v2/http` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/http) The general function is named `Send`, but the Go SDK also surfaces individual functions, with request-specific parameters, for the `Get` and `Post` operations. For example: ```go import ( - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) res1, err1 := spinhttp.Get("https://random-data-api.fermyon.app/animals/json") diff --git a/content/v3/http-trigger.md b/content/v3/http-trigger.md index 161985d5..0ace3f5d 100644 --- a/content/v3/http-trigger.md +++ b/content/v3/http-trigger.md @@ -302,7 +302,7 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/http) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/http) In Go, you register the handler as a callback in your program's `init` function. Call `spinhttp.Handle`, passing your handler as the sole argument. Your handler takes a `http.Request` record, from the standard `net/http` package, and a `ResponseWriter` to construct the response. @@ -313,7 +313,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/content/v3/key-value-store-tutorial.md b/content/v3/key-value-store-tutorial.md index e3203fa7..d6ca689f 100644 --- a/content/v3/key-value-store-tutorial.md +++ b/content/v3/key-value-store-tutorial.md @@ -334,8 +334,8 @@ import ( "net/http" "fmt" - spin_http "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/kv" + spin_http "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/kv" ) func init() { diff --git a/content/v3/kv-store-api-guide.md b/content/v3/kv-store-api-guide.md index a28ab671..aa6711fd 100644 --- a/content/v3/kv-store-api-guide.md +++ b/content/v3/kv-store-api-guide.md @@ -155,12 +155,12 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/kv) +> [**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/kv) -Key value functions are provided by the `github.com/fermyon/spin/sdk/go/v2/kv` module. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/kv) For example: +Key value functions are provided by the `github.com/spinframework/spin-go-sdk/v2/kv` module. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/kv) For example: ```go -import "github.com/fermyon/spin/sdk/go/v2/kv" +import "github.com/spinframework/spin-go-sdk/v2/kv" func example() error { store, err := kv.OpenStore("default") diff --git a/content/v3/language-support-overview.md b/content/v3/language-support-overview.md index d0ea48d9..c633fac4 100644 --- a/content/v3/language-support-overview.md +++ b/content/v3/language-support-overview.md @@ -85,7 +85,7 @@ This page contains information about language support for Spin features: {{ startTab "TinyGo"}} -**[📄 Visit the TinyGo Spin SDK reference documentation](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) to see specific modules, functions, variables and syntax relating to the following TinyGo SDK.** +**[📄 Visit the TinyGo Spin SDK reference documentation](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2) to see specific modules, functions, variables and syntax relating to the following TinyGo SDK.** | Feature | SDK Supported? | |-----|-----| diff --git a/content/v3/quickstart.md b/content/v3/quickstart.md index a94b13eb..e512fc96 100644 --- a/content/v3/quickstart.md +++ b/content/v3/quickstart.md @@ -652,7 +652,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/content/v3/rdbms-storage.md b/content/v3/rdbms-storage.md index 6368d909..69ef6fc2 100644 --- a/content/v3/rdbms-storage.md +++ b/content/v3/rdbms-storage.md @@ -140,9 +140,9 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2) -MySQL functions are available in the `github.com/fermyon/spin/sdk/go/v2/mysql` package, and PostgreSQL in `github.com/fermyon/spin/sdk/go/v2/pg`. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2) +MySQL functions are available in the `github.com/spinframework/spin-go-sdk/v2/mysql` package, and PostgreSQL in `github.com/spinframework/spin-go-sdk/v2/pg`. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2) The package follows the usual Go database API. Use `Open` to return a connection to the database of type `*sql.DB` - see the [Go standard library documentation](https://pkg.go.dev/database/sql#DB) for usage information. For example: @@ -155,8 +155,8 @@ import ( "net/http" "os" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/pg" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/pg" ) type Pet struct { diff --git a/content/v3/redis-outbound.md b/content/v3/redis-outbound.md index ddc56936..944b1297 100644 --- a/content/v3/redis-outbound.md +++ b/content/v3/redis-outbound.md @@ -139,13 +139,13 @@ You can find a complete Python code example for using outbound Redis from an HTT {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/redis) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/redis) -Redis functions are available in the `github.com/fermyon/spin/sdk/go/v2/redis` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/redis) The function names are TitleCased. For example: +Redis functions are available in the `github.com/spinframework/spin-go-sdk/v2/redis` package. [See Go Packages for reference documentation.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/redis) The function names are TitleCased. For example: ```go import ( - "github.com/fermyon/spin/sdk/go/v2/redis" + "github.com/spinframework/spin-go-sdk/v2/redis" ) rdb := redis.NewClient(addr) diff --git a/content/v3/redis-trigger.md b/content/v3/redis-trigger.md index ffb2a3bc..0f44773d 100644 --- a/content/v3/redis-trigger.md +++ b/content/v3/redis-trigger.md @@ -114,7 +114,7 @@ class InboundRedis(exports.InboundRedis): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/redis) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/redis) In Go, you register the handler as a callback in your program's `init` function. Call `redis.Handle` (from the Spin SDK `redis` package), passing your handler as the sole argument. Your handler takes a single byte slice (`[]byte`) argument, and may return an error or `nil`. @@ -128,7 +128,7 @@ package main import ( "fmt" - "github.com/fermyon/spin/sdk/go/v2/redis" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { diff --git a/content/v3/serverless-ai-api-guide.md b/content/v3/serverless-ai-api-guide.md index 1088804f..47bc168b 100644 --- a/content/v3/serverless-ai-api-guide.md +++ b/content/v3/serverless-ai-api-guide.md @@ -183,15 +183,15 @@ class IncomingHandler(http.IncomingHandler): - The model name is passed in as a string (as shown above; `"llama2-chat"`). [`infer_with_options` operation](https://spinframework.github.io/spin-python-sdk/v3/llm.html#spin_sdk.llm.infer_with_options): -- It takes in a model name, prompt text, and optionally a [parameter object](https://spinframework.github.io/spin-python-sdk/v3/llm.html#spin_sdk.llm.InferencingParams) to control the inferencing. +- It takes in a model name, prompt text, and optionally a [parameter object](https://spinframework.github.io/spin-python-sdk/v3/llm.html#spin_sdk.llm.InferencingParams) to control the inferencing. {{ blockEnd }} {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/llm) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/llm) -Serverless AI functions are available in the `github.com/fermyon/spin/sdk/go/v2/llm` package. See [Go Packages](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/llm) for reference documentation. For example: +Serverless AI functions are available in the `github.com/spinframework/spin-go-sdk/v2/llm` package. See [Go Packages](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/llm) for reference documentation. For example: ```go package main @@ -200,8 +200,8 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/llm" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/llm" ) func init() { diff --git a/content/v3/sqlite-api-guide.md b/content/v3/sqlite-api-guide.md index 987d817c..28b363b0 100644 --- a/content/v3/sqlite-api-guide.md +++ b/content/v3/sqlite-api-guide.md @@ -182,7 +182,7 @@ class IncomingHandler(http.IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/sqlite) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/sqlite) The Go SDK is implemented as a driver for the standard library's [database/sql](https://pkg.go.dev/database/sql) interface. @@ -193,8 +193,8 @@ import ( "encoding/json" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/sqlite" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/sqlite" ) type Todo struct { diff --git a/content/v3/variables.md b/content/v3/variables.md index 8eeb7049..2507b61c 100644 --- a/content/v3/variables.md +++ b/content/v3/variables.md @@ -201,9 +201,9 @@ class IncomingHandler(IncomingHandler): {{ startTab "TinyGo"}} -> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2@v2.0.0/variables) +> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2@v2.2.1/variables) -The function is available in the `github.com/fermyon/spin/sdk/go/v2/variables` package and is named `Get`. See [Go package](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2/variables) for reference documentation. +The function is available in the `github.com/spinframework/spin-go-sdk/v2/variables` package and is named `Get`. See [Go package](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2/variables) for reference documentation. ```go import ( @@ -211,8 +211,8 @@ import ( "fmt" "net/http" - spinhttp "github.com/fermyon/spin/sdk/go/v2/http" - "github.com/fermyon/spin/sdk/go/v2/variables" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/variables" ) func init() {