Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pdata] Update deprecation comments #6206

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[pdata] Update deprecation instructions
  • Loading branch information
mx-psi committed Sep 29, 2022
commit 4403f9b2a6827266026b1e51b7510d2b05faf119
12 changes: 6 additions & 6 deletions pdata/pcommon/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,32 +331,32 @@ func (v Value) StringVal() string {
return v.Str()
}

// Deprecated: [0.61.0] Use GetInt instead.
// Deprecated: [0.61.0] Use Int instead.
func (v Value) IntVal() int64 {
return v.Int()
}

// Deprecated: [0.61.0] Use GetDouble instead.
// Deprecated: [0.61.0] Use Double instead.
func (v Value) DoubleVal() float64 {
return v.Double()
}

// Deprecated: [0.61.0] Use GetBool instead.
// Deprecated: [0.61.0] Use Bool instead.
func (v Value) BoolVal() bool {
return v.Bool()
}

// Deprecated: [0.61.0] Use GetMap instead.
// Deprecated: [0.61.0] Use Map instead.
func (v Value) MapVal() Map {
return v.Map()
}

// Deprecated: [0.61.0] Use GetSlice instead.
// Deprecated: [0.61.0] Use Slice instead.
func (v Value) SliceVal() Slice {
return v.Slice()
}

// Deprecated: [0.61.0] Use GetBytes instead.
// Deprecated: [0.61.0] Use Bytes instead.
func (v Value) BytesVal() ByteSlice {
return v.Bytes()
}
Expand Down