mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 13:55:42 +03:00
5f038cd7fe
* upgraded code.gitea.io/sdk/gitea v0.13.2 => v0.14.0 * rm workaround
20 lines
492 B
Go
Vendored
20 lines
492 B
Go
Vendored
// 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
|
|
}
|