Skip to content

Commit f3172bc

Browse files
committed
Update Go import paths to spinframework
Signed-off-by: Adam Reese <[email protected]>
1 parent e1c1503 commit f3172bc

28 files changed

+83
-83
lines changed

content/v2/ai-sentiment-analysis-api-tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,9 @@ import (
664664
"net/http"
665665
"strings"
666666

667-
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
668-
"github.com/fermyon/spin/sdk/go/v2/kv"
669-
"github.com/fermyon/spin/sdk/go/v2/llm"
667+
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
668+
"github.com/spinframework/spin-go-sdk/v2/kv"
669+
"github.com/spinframework/spin-go-sdk/v2/llm"
670670
)
671671

672672
type sentimentAnalysisRequest struct {

content/v2/go-components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Using TinyGo to compile components for Spin is currently required, as the
2626

2727
> 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).
2828
29-
[**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2)
29+
[**Want to go straight to the Spin SDK reference documentation?** Find it here.](https://pkg.go.dev/github.com/spinframework/spin-go-sdk/v2)
3030

3131
## Versions
3232

@@ -52,7 +52,7 @@ import (
5252
"fmt"
5353
"net/http"
5454

55-
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
55+
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
5656
)
5757

5858
func init() {
@@ -124,7 +124,7 @@ import (
124124
"net/http"
125125
"os"
126126

127-
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
127+
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
128128
)
129129

130130
func init() {
@@ -217,7 +217,7 @@ package main
217217
import (
218218
"fmt"
219219

220-
"github.com/fermyon/spin/sdk/go/v2/redis"
220+
"github.com/spinframework/spin-go-sdk/v2/redis"
221221
)
222222

223223
func init() {
@@ -309,8 +309,8 @@ import (
309309
"net/http"
310310
"os"
311311

312-
spin_http "github.com/fermyon/spin/sdk/go/v2/http"
313-
"github.com/fermyon/spin/sdk/go/v2/redis"
312+
spin_http "github.com/spinframework/spin-go-sdk/v2/http"
313+
"github.com/spinframework/spin-go-sdk/v2/redis"
314314
)
315315

316316
func init() {

content/v2/http-outbound.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ You can find a complete example for using outbound HTTP in the [Python SDK repos
132132

133133
{{ startTab "TinyGo"}}
134134

135-
> [**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)
135+
> [**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)
136136
137-
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:
137+
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:
138138

139139
```go
140140
import (
141-
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
141+
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
142142
)
143143

144144
res1, err1 := spinhttp.Get("https://random-data-api.fermyon.app/animals/json")

content/v2/http-trigger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class IncomingHandler(http.IncomingHandler):
305305

306306
{{ startTab "TinyGo"}}
307307

308-
> [**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)
308+
> [**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)
309309
310310
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.
311311

@@ -318,7 +318,7 @@ import (
318318
"fmt"
319319
"net/http"
320320

321-
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
321+
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
322322
)
323323

324324
func init() {

content/v2/key-value-store-tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ import (
330330
"net/http"
331331
"fmt"
332332

333-
spin_http "github.com/fermyon/spin/sdk/go/v2/http"
334-
"github.com/fermyon/spin/sdk/go/v2/kv"
333+
spin_http "github.com/spinframework/spin-go-sdk/v2/http"
334+
"github.com/spinframework/spin-go-sdk/v2/kv"
335335
)
336336

337337
func init() {

content/v2/kv-store-api-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ class IncomingHandler(http.IncomingHandler):
148148

149149
{{ startTab "TinyGo"}}
150150

151-
> [**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)
151+
> [**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)
152152
153-
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:
153+
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:
154154

155155
```go
156-
import "github.com/fermyon/spin/sdk/go/v2/kv"
156+
import "github.com/spinframework/spin-go-sdk/v2/kv"
157157

158158
func example() error {
159159
store, err := kv.OpenStore("default")

content/v2/language-support-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ This page contains information about language support for Spin features:
8585

8686
{{ startTab "TinyGo"}}
8787

88-
**[📄 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.**
88+
**[📄 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.**
8989

9090
| Feature | SDK Supported? |
9191
|-----|-----|

content/v2/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ import (
661661
"fmt"
662662
"net/http"
663663

664-
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
664+
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
665665
)
666666

667667
func init() {

content/v2/rdbms-storage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ class IncomingHandler(http.IncomingHandler):
129129

130130
{{ startTab "TinyGo"}}
131131

132-
> [**Want to go straight to the reference documentation?** Find it here.](https://pkg.go.dev/github.com/fermyon/spin/sdk/go/v2)
132+
> [**Want to go straight to the reference documentation?** Find it here.](github.com/spinframework/spin-go-sdk/v2)
133133
134-
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)
134+
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)
135135

136136
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:
137137

@@ -144,8 +144,8 @@ import (
144144
"net/http"
145145
"os"
146146

147-
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
148-
"github.com/fermyon/spin/sdk/go/v2/pg"
147+
spinhttp "github.com/spinframework/spin-go-sdk/v2/http"
148+
"github.com/spinframework/spin-go-sdk/v2/pg"
149149
)
150150

151151
type Pet struct {

content/v2/redis-outbound.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ You can find a complete Python code example for using outbound Redis from an HTT
139139

140140
{{ startTab "TinyGo"}}
141141

142-
> [**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)
142+
> [**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)
143143
144-
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:
144+
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:
145145

146146
```go
147147
import (
148-
"github.com/fermyon/spin/sdk/go/v2/redis"
148+
"github.com/spinframework/spin-go-sdk/v2/redis"
149149
)
150150

151151
rdb := redis.NewClient(addr)

0 commit comments

Comments
 (0)