選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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