Binary search: take a sortcut [sic] yourbasic.org/golang See How to find an element in a slice/array.