mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-07 18:35:06 +02:00
fix minor things
This commit is contained in:
@@ -19,7 +19,7 @@ type fieldInfo struct {
|
||||
Field reflect.Value
|
||||
}
|
||||
|
||||
// StringTemplate is string
|
||||
// StringTemplate is a convenience alias
|
||||
type StringTemplate string
|
||||
|
||||
func decoderFrom(field reflect.Value) (d decoder) {
|
||||
@@ -240,7 +240,7 @@ func (f *StringTemplate) Format(a ...string) string {
|
||||
return res
|
||||
}
|
||||
|
||||
// MarshalJSON returns json.Marshal(byte slice) from StringTemplate
|
||||
// MarshalJSON converts a StringTemplate to byte slice
|
||||
func (f StringTemplate) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(string(f))
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ type httpClient interface {
|
||||
Do(req *http.Request) (*http.Response, error)
|
||||
}
|
||||
|
||||
// Interface have to implement TeamInfo
|
||||
// Interface to the TeamsAPIClient
|
||||
type Interface interface {
|
||||
TeamInfo(teamID, token string) (tm *Team, err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user