Registry / utility / jpillora-longestcommon

jpillora-longestcommon

JSON →
library0.0.0-20161227235612-adb9d91ee629gogounverified

A Go library for finding the longest common substring among a set of strings.

go get github.com/jpillora/longestcommon
INSTALL
IMPORT
SIG · JPILLORA-LONGESTCO
J
jpillora-longestcommon
utilitygov0.0.0-20161227235612-adb9d91ee629
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

longestcommon
github.com/jpillora/longestcommon

Finds the longest common prefix of a slice of strings.

package main import ( "fmt" "github.com/jpillora/longestcommon" ) func main() { result := longestcommon.Prefix([]string{"flower", "flow", "flight"}) fmt.Println(result) // Output: "fl" }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20161227235612-adb9d91ee629latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
jpillora-longestcommon — go get jpillora-longestcommon · libregistry