Skip to content

Commit

Permalink
chore: go live (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Sep 12, 2024
1 parent f7b1d31 commit fb0454a
Show file tree
Hide file tree
Showing 74 changed files with 385 additions and 307 deletions.
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.1-alpha.0"
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To use a local version of this library from source in another project, edit the
directive. This can be done through the CLI with the following:

```bash
go mod edit -replace github.com/stainless-sdks/open-transit-go=/path/to/open-transit-go
go mod edit -replace github.com/OneBusAway/go-sdk=/path/to/go-sdk
```

## Running tests
Expand Down
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Onebusaway SDK Go API Library

<a href="https://pkg.go.dev/github.com/stainless-sdks/open-transit-go"><img src="https://pkg.go.dev/badge/github.com/stainless-sdks/open-transit-go.svg" alt="Go Reference"></a>
<a href="https://pkg.go.dev/github.com/OneBusAway/go-sdk"><img src="https://pkg.go.dev/badge/github.com/OneBusAway/go-sdk.svg" alt="Go Reference"></a>

The Onebusaway SDK Go library provides convenient access to [the Onebusaway SDK REST
API](https://developer.onebusaway.org) from applications written in Go. The full API of this library can be found in [api.md](api.md).
Expand All @@ -9,18 +9,26 @@ It is generated with [Stainless](https://www.stainlessapi.com/).

## Installation

<!-- x-release-please-start-version -->

```go
import (
"github.com/stainless-sdks/open-transit-go" // imported as onebusaway
"github.com/OneBusAway/go-sdk" // imported as onebusaway
)
```

<!-- x-release-please-end -->

Or to pin the version:

<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/stainless-sdks/open-transit-go@v0.0.1-alpha.0'
go get -u 'github.com/OneBusAway/go-sdk@v0.0.1-alpha.0'
```

<!-- x-release-please-end -->

## Requirements

This library requires Go 1.18+.
Expand All @@ -35,8 +43,8 @@ package main
import (
"context"

"github.com/stainless-sdks/open-transit-go"
"github.com/stainless-sdks/open-transit-go/option"
"github.com/OneBusAway/go-sdk"
"github.com/OneBusAway/go-sdk/option"
)

func main() {
Expand Down Expand Up @@ -143,7 +151,7 @@ client.CurrentTime.Get(context.TODO(), ...,
)
```

See the [full list of request options](https://pkg.go.dev/github.com/stainless-sdks/open-transit-go/option).
See the [full list of request options](https://pkg.go.dev/github.com/OneBusAway/go-sdk/option).

### Pagination

Expand Down Expand Up @@ -322,4 +330,4 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/open-transit-go/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/OneBusAway/go-sdk/issues) with questions, bugs, or suggestions.
8 changes: 4 additions & 4 deletions agencieswithcoverage.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"context"
"net/http"

"github.com/stainless-sdks/open-transit-go/internal/apijson"
"github.com/stainless-sdks/open-transit-go/internal/requestconfig"
"github.com/stainless-sdks/open-transit-go/option"
"github.com/stainless-sdks/open-transit-go/shared"
"github.com/OneBusAway/go-sdk/internal/apijson"
"github.com/OneBusAway/go-sdk/internal/requestconfig"
"github.com/OneBusAway/go-sdk/option"
"github.com/OneBusAway/go-sdk/shared"
)

// AgenciesWithCoverageService contains methods and other services that help with
Expand Down
6 changes: 3 additions & 3 deletions agencieswithcoverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/stainless-sdks/open-transit-go"
"github.com/stainless-sdks/open-transit-go/internal/testutil"
"github.com/stainless-sdks/open-transit-go/option"
"github.com/OneBusAway/go-sdk"
"github.com/OneBusAway/go-sdk/internal/testutil"
"github.com/OneBusAway/go-sdk/option"
)

func TestAgenciesWithCoverageList(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions agency.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"fmt"
"net/http"

"github.com/stainless-sdks/open-transit-go/internal/apijson"
"github.com/stainless-sdks/open-transit-go/internal/requestconfig"
"github.com/stainless-sdks/open-transit-go/option"
"github.com/stainless-sdks/open-transit-go/shared"
"github.com/OneBusAway/go-sdk/internal/apijson"
"github.com/OneBusAway/go-sdk/internal/requestconfig"
"github.com/OneBusAway/go-sdk/option"
"github.com/OneBusAway/go-sdk/shared"
)

// AgencyService contains methods and other services that help with interacting
Expand Down
6 changes: 3 additions & 3 deletions agency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/stainless-sdks/open-transit-go"
"github.com/stainless-sdks/open-transit-go/internal/testutil"
"github.com/stainless-sdks/open-transit-go/option"
"github.com/OneBusAway/go-sdk"
"github.com/OneBusAway/go-sdk/internal/testutil"
"github.com/OneBusAway/go-sdk/option"
)

func TestAgencyGet(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package onebusaway

import (
"github.com/stainless-sdks/open-transit-go/internal/apierror"
"github.com/stainless-sdks/open-transit-go/shared"
"github.com/OneBusAway/go-sdk/internal/apierror"
"github.com/OneBusAway/go-sdk/shared"
)

type Error = apierror.Error
Expand Down
Loading

0 comments on commit fb0454a

Please sign in to comment.