Skip to content

YaroslavGaponov/si

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Search Index

Demo

Golang playground here

Test

package main

import (
	"fmt"
	"github.com/YaroslavGaponov/si/lib"
)

func main() {

	s := si.New(2)
	s.Add("hello")
	s.Add("hi world")
	s.Add("hello world")
	s.Add("hallelujah world")

	for _, result := range s.Search([]string{"rl", "ll"}) {
		fmt.Println(result)
	}

}

Result

hello world
hallelujah world

Releases

No releases published

Packages

No packages published

Languages