Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindLongestCommonPrefix ¶
FindLongestCommonPrefix finds the longest common path prefix of a set of paths. For example, given the following:
github.com/owner/repo/cmd/foo github.com/owner/repo/cmd/bar
The longest common prefix is: github.com/owner/repo/cmd/ (note the trailing slash is included).
Types ¶
type WriteNopCloser ¶ added in v0.16.0
DiscardCloser is an io.Writer that implements io.Closer by doing nothing.
https://github.com/golang/go/issues/22823
func (WriteNopCloser) Close ¶ added in v0.16.0
func (WriteNopCloser) Close() error