From 03f0d4d90578f126359e7038e3139e5eaea882ec Mon Sep 17 00:00:00 2001 From: dudaodong Date: Tue, 29 Apr 2025 10:18:51 +0800 Subject: [PATCH] fix: fix ExampleFindValuesBy --- maputil/map_example_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maputil/map_example_test.go b/maputil/map_example_test.go index f18b00f..cff20e2 100644 --- a/maputil/map_example_test.go +++ b/maputil/map_example_test.go @@ -842,6 +842,10 @@ func ExampleFindValuesBy() { return k%2 == 0 }) + // github action will excute this test currently, so sort the result + // to make it deterministic + sort.Strings(result) + fmt.Println(result) // Output: