Add userpreferences

This commit is contained in:
Darren Shepherd
2020-03-12 13:14:47 -07:00
parent 0ad6c2aba1
commit 655b7a85ee
6 changed files with 339 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ func (r *RawResource) MarshalJSON() ([]byte, error) {
return nil, err
}
if len(data) < 2 || data[0] != '{' || data[len(data)-1] != '}' {
if len(data) < 3 || data[0] != '{' || data[len(data)-1] != '}' {
return outer, nil
}
@@ -288,3 +288,8 @@ func FormatterChain(formatter Formatter, next Formatter) Formatter {
next(request, resource)
}
}
func (r *APIRequest) Clone() *APIRequest {
clone := *r
return &clone
}