Documentation ¶ Index ¶ func DiffTrees(_ context.Context, fromTree, toTree domain.Tree) ([]*domain.Source, int, error) func Search(ctx context.Context, algorithmName string, queries []*domain.Source, ...) ([]*domain.CloneSet, error) type AlgorithmFunc type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DiffTrees ¶ added in v0.8.0 func DiffTrees( _ context.Context, fromTree, toTree domain.Tree, ) ([]*domain.Source, int, error) func Search ¶ func Search( ctx context.Context, algorithmName string, queries []*domain.Source, searchTree domain.Tree, c *Config, ) ([]*domain.CloneSet, error) Types ¶ type AlgorithmFunc ¶ added in v0.7.1 type AlgorithmFunc = func( ctx context.Context, sourceTree domain.Searcher, sources []*domain.Source, searchTree domain.Searcher, c *Config, ) ([]*domain.Clone, error) type Config ¶ added in v0.8.1 type Config struct { Matcher *domain.MatcherRules DetectMicro bool AlgoParams map[string]string } Source Files ¶ View all Source files search.gosearch_impl_adapter.go Click to show internal directories. Click to hide internal directories.