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

go: Add svix.NullableInt64 #1542

Merged
merged 1 commit into from
Dec 5, 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
9 changes: 9 additions & 0 deletions go/svix.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,27 @@ var defaultHTTPClient = &http.Client{
func String(s string) *string {
return &s
}

func NullableString(s *string) *openapi.NullableString {
return openapi.NewNullableString(s)
}

func StaticNullableString(s string) openapi.NullableString {
return *NullableString(String(s))
}

func NullableInt32(num *int32) *openapi.NullableInt32 {
return openapi.NewNullableInt32(num)
}

func NullableInt64(num *int64) *openapi.NullableInt64 {
return openapi.NewNullableInt64(num)
}

func Int32(i int32) *int32 {
return &i
}

func NullableBool(b *bool) *openapi.NullableBool {
return openapi.NewNullableBool(b)
}
Expand Down