mirror of
https://gitea.com/gitea/tea.git
synced 2024-12-04 14:46:40 -05:00
476900ab41
Update SDK Use OptionalBool helper Fix #254 Reviewed-on: https://gitea.com/gitea/tea/pulls/257 Reviewed-by: John Olheiser <john.olheiser@gmail.com> Reviewed-by: techknowlogick <techknowlogick@gitea.io> Co-Authored-By: 6543 <6543@obermui.de> Co-Committed-By: 6543 <6543@obermui.de>
21 lines
492 B
Go
21 lines
492 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package gitea
|
|
|
|
// OptionalBool convert a bool to a bool reference
|
|
func OptionalBool(v bool) *bool {
|
|
return &v
|
|
}
|
|
|
|
// OptionalString convert a string to a string reference
|
|
func OptionalString(v string) *string {
|
|
return &v
|
|
}
|
|
|
|
// OptionalInt64 convert a int64 to a int64 reference
|
|
func OptionalInt64(v int64) *int64 {
|
|
return &v
|
|
}
|