Skip to content

Commit d23d6b2

Browse files
committed
Fix deprecation comments
1 parent 53670b9 commit d23d6b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sliceutil/compatibility.go

+14
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,98 @@
11
package sliceutil
22

33
// JoinInt see Join
4+
//
45
// Deprecated: use Join
56
func JoinInt(ints []int64) string {
67
return Join(ints)
78
}
89

910
// UniqInt64 see Unique
11+
//
1012
// Deprecated: use Unique
1113
func UniqInt64(list []int64) []int64 {
1214
return Unique(list)
1315
}
1416

1517
// UniqString see Unique
18+
//
1619
// Deprecated: use Unique
1720
func UniqString(list []string) []string {
1821
return Unique(list)
1922
}
2023

2124
// UniqueMergeSlices see MergeUnique
25+
//
2226
// Deprecated: use MergeUnique
2327
func UniqueMergeSlices(s [][]int64) (result []int64) {
2428
return MergeUnique(s)
2529
}
2630

2731
// InStringSlice see Contains
32+
//
2833
// Deprecated: use Contains
2934
func InStringSlice(list []string, str string) bool {
3035
return Contains(list, str)
3136
}
3237

3338
// InIntSlice see Contains
39+
//
3440
// Deprecated: use Contains
3541
func InIntSlice(list []int, i int) bool {
3642
return Contains(list, i)
3743
}
3844

3945
// InInt64Slice see Contains
46+
//
4047
// Deprecated: use Contains
4148
func InInt64Slice(list []int64, i int64) bool {
4249
return Contains(list, i)
4350
}
4451

4552
// RepeatString see Repeat
53+
//
4654
// Deprecated: use Repeat
4755
func RepeatString(s string, n int) (r []string) {
4856
return Repeat(s, n)
4957
}
5058

5159
// ChooseString see Choose
60+
//
5261
// Deprecated: use Choose
5362
func ChooseString(l []string) string {
5463
return Choose(l)
5564
}
5665

5766
// FilterString see Filter
67+
//
5868
// Deprecated: use Filter
5969
func FilterString(list []string, fun func(string) bool) []string {
6070
return Filter(list, fun)
6171
}
6272

6373
// RemoveString see Remove
74+
//
6475
// Deprecated: use Remove
6576
func RemoveString(list []string, s string) (out []string) {
6677
return Remove(list, s)
6778
}
6879

6980
// FilterStringEmpty see FilterEmpty
81+
//
7082
// Deprecated: use FilterEmpty
7183
func FilterStringEmpty(e string) bool {
7284
return FilterEmpty(e)
7385
}
7486

7587
// FilterInt see Filter
88+
//
7689
// Deprecated: use Filter
7790
func FilterInt(list []int64, fun func(int64) bool) []int64 {
7891
return Filter(list, fun)
7992
}
8093

8194
// StringMap see Map
95+
//
8296
// Deprecated: use Map
8397
func StringMap(list []string, f func(string) string) []string {
8498
return Map(list, f)

0 commit comments

Comments
 (0)