longestcommon

package
v0.8.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

https://github.com/jpillora/longestcommon Doesn't have go.mod file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prefix

func Prefix(strs []string) string

Prefix returns the longest common prefix of the provided strings

func Suffix

func Suffix(strs []string) string

Suffix returns the longest common suffix of the provided strings

func TrimPrefix

func TrimPrefix(strs []string)

TrimPrefix removes the longest common prefix from all provided strings

func TrimSuffix

func TrimSuffix(strs []string)

TrimSuffix removes the longest common suffix from all provided strings

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL