clair: github.com/coreos/clair/pkg/strutil Index | Files

package strutil

import "github.com/coreos/clair/pkg/strutil"

Index

Package Files

strutil.go

func CleanURL Uses

func CleanURL(str string) string

CleanURL removes all parameters from an URL.

func Difference Uses

func Difference(X, Y []string) []string

Difference returns the strings that are present in X but not in Y.

func Intersect Uses

func Intersect(X, Y []string) []string

Intersect returns the strings that are present in both X and Y.

func Substring Uses

func Substring(s string, start, end int) string

Substring returns a substring by [start, end). If start or end are out of bound, it returns "".

Package strutil imports 2 packages (graph) and is imported by 6 packages. Updated 2018-10-17. Refresh now. Tools for package owners.