Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. }