utils.go 404 B

1234567891011121314151617181920212223
  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 gogs
  5. import (
  6. "net/http"
  7. )
  8. var jsonHeader = http.Header{"content-type": []string{"application/json"}}
  9. func Bool(v bool) *bool {
  10. return &v
  11. }
  12. func String(v string) *string {
  13. return &v
  14. }
  15. func Int64(v int64) *int64 {
  16. return &v
  17. }