Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove incorrect rename from Mux docs #198

Merged
merged 1 commit into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .grit/patterns/go/mux_go_v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ The client initialization method has renamed to `NewClient` and configuration is
Basic Auth has been replaced with `WithTokenID` and `WithTokenSecret` options.

Old:

```go
package main

Expand All @@ -101,6 +102,7 @@ func main() {
```

New:

```go
package main

Expand Down Expand Up @@ -137,9 +139,10 @@ func main() {

All request parameters are now wrapped in a generic Field type, which helps to distinguish zero values from null or omitted fields. In most cases, primitive values should simply be wrapped in `muxgo.F()`.

Fields which you want to be null *must* now be sent and should be specified using `muxgo.Null[<type>]()`.
Fields which you want to be null _must_ now be sent and should be specified using `muxgo.Null[<type>]()`.

Before:

```go
package main

Expand All @@ -151,6 +154,7 @@ func main() {
```

After:

```go
package main

Expand All @@ -163,11 +167,10 @@ func main() {
```

## Video API

The Video API has been moved under the `Video` namespace of the client and methods have been renamed:
- `AssetsApi.CreateAsset` -> `Video.Assets.New`

Request parameters must be imported from the `video` package, and some have been renamed:
- `MasterAccess` -> `PlaybackPolicy`
- `AssetsApi.CreateAsset` -> `Video.Assets.New`

```go
package main
Expand Down
Loading