go-sdk/utils.go

24 lines
405 B
Go
Raw Normal View History

2015-12-06 03:42:43 +05:30
// Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitea
2015-12-06 03:42:43 +05:30
2016-07-17 06:16:54 +05:30
import (
"net/http"
)
var jsonHeader = http.Header{"content-type": []string{"application/json"}}
2015-12-06 03:42:43 +05:30
func Bool(v bool) *bool {
return &v
}
2016-03-14 08:48:27 +05:30
func String(v string) *string {
return &v
}
func Int64(v int64) *int64 {
return &v
}