Help us shape the future of Go! Take the 2026 Go Developer Survey

str

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(strings1, strings2 []string) (extra []string, missing []string, common []string)

compare performs a set comparison between two slices. `extra` represents elements present in `strings1` but not `strings2`. `missing` represents elements present in `strings2` that are missing from `strings1`. `common` represents elements present in both slices. Since the input slices are treated as sets, duplicates will be removed in any outputs. from: https://github.com/buildpacks/pack/blob/main/internal/stringset/stringset.go

Types

type Slice added in v0.14.1

type Slice []string

func (*Slice) Set added in v0.14.1

func (s *Slice) Set(value string) error

func (*Slice) String added in v0.14.1

func (s *Slice) String() string

Jump to

Keyboard shortcuts

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