// This example demonstrates searching a list sorted in ascending order. func ExampleSearch() { … } // This example demonstrates searching a list sorted in descending order. // The approach is the same as searching a list in ascending order, // but with the condition inverted. func ExampleSearch_descendingOrder() { … } // This example demonstrates finding a string in a list sorted in ascending order. func ExampleFind() { … } // This example demonstrates searching for float64 in a list sorted in ascending order. func ExampleSearchFloat64s() { … } // This example demonstrates searching for int in a list sorted in ascending order. func ExampleSearchInts() { … }