1// Copyright 2020 The Gitea Authors. All rights reserved. 2// Use of this source code is governed by a MIT-style 3// license that can be found in the LICENSE file. 4 5package gitea 6 7// OptionalBool convert a bool to a bool reference 8func OptionalBool(v bool) *bool { 9 return &v 10} 11 12// OptionalString convert a string to a string reference 13func OptionalString(v string) *string { 14 return &v 15} 16 17// OptionalInt64 convert a int64 to a int64 reference 18func OptionalInt64(v int64) *int64 { 19 return &v 20} 21