You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

utils.go 424B

1234567891011121314151617181920
  1. // Copyright 2015 The Gogs 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. package structs
  5. // Bool return address of bool value
  6. func Bool(v bool) *bool {
  7. return &v
  8. }
  9. // String return address of string value
  10. func String(v string) *string {
  11. return &v
  12. }
  13. // Int64 return address of int64 value
  14. func Int64(v int64) *int64 {
  15. return &v
  16. }