Skip to content

Commit

Permalink
No Deprecated to pass the check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloento authored Aug 10, 2022
1 parent f25fb34 commit e9884af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions results.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ further interpret the result's payload in a specific context. Extensions or
providers can then provide additional extraction functions to pull out
provider- or extension-specific information as well.
Deprecated: use plain functions of this package instead
: use plain functions of this package instead
*/
type Result struct {
// Body is the payload of the HTTP response from the server. In most cases,
Expand Down Expand Up @@ -72,7 +72,7 @@ func ExtractInto(body interface{}, to interface{}) error {
// the `Result.Body`. This would be useful for OpenStack providers that have
// different fields in the response object than OpenStack proper.
//
// Deprecated: use ExtractInto function instead
// : use ExtractInto function instead
func (r Result) ExtractInto(to interface{}) error {
if r.Err != nil {
return r.Err
Expand Down Expand Up @@ -195,7 +195,7 @@ func ExtractIntoStructPtr(body, to interface{}, label string) error {
// If provided, `label` will be filtered out of the response
// body prior to `r` being unmarshalled into `to`.
//
// Deprecated: use ExtractIntoStructPtr function instead
// : use ExtractIntoStructPtr function instead
func (r Result) ExtractIntoStructPtr(to interface{}, label string) error {
if r.Err != nil {
return r.Err
Expand Down Expand Up @@ -229,7 +229,7 @@ func ExtractIntoSlicePtr(body, to interface{}, label string) error {
// If provided, `label` will be filtered out of the response
// body prior to `r` being unmarshalled into `to`.
//
// Deprecated: use ExtractIntoSlicePtr function instead
// : use ExtractIntoSlicePtr function instead
func (r Result) ExtractIntoSlicePtr(to interface{}, label string) error {
if r.Err != nil {
return r.Err
Expand Down Expand Up @@ -264,7 +264,7 @@ func (r Result) PrettyPrintJSON() string {
// ExtractErr method
// to cleanly pull it out.
//
// Deprecated: use plain err return instead
// : use plain err return instead
type ErrResult struct {
Result
}
Expand Down

0 comments on commit e9884af

Please sign in to comment.