Skip to content

Commit 8638cef

Browse files
authored
Merge pull request #6032 from thaJeztah/deprecate_ListOpts_GetAll
opts: deprecate ListOpts.GetAll in favor of ListOpts.GetSlice
2 parents ca19957 + 5215b1e commit 8638cef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

opts/opts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ func (opts *ListOpts) GetMap() map[string]struct{} {
8080
}
8181

8282
// GetAll returns the values of slice.
83+
//
84+
// Deprecated: use [ListOpts.GetSlice] instead. This method will be removed in a future release.
8385
func (opts *ListOpts) GetAll() []string {
8486
return *opts.values
8587
}

0 commit comments

Comments
 (0)