package main
import (
"fmt"
"sort"
)
func main() {
slice_1 := []
int
{34, 67, 78, 10, 43, 67, 8}
slice_2 := []
int
{100, 500, 300, 600, 900, 1000}
var f1, f2, f3
int
f1 = 67
f2 = 300
f3 = 100
sort.Ints(slice_1)
sort.Ints(slice_2)
fmt.Println(
"Slice 1: "
, slice_1)
fmt.Println(
"Slice 2: "
, slice_2)
res1 := sort.SearchInts(slice_1, f1)
res2 := sort.SearchInts(slice_2, f2)
res3 := sort.SearchInts(slice_2, f3)
fmt.Println(
"Result 1: "
, res1)
fmt.Println(
"Result 2: "
, res2)
fmt.Println(
"Result 3: "
, res3)
}