share

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SecondsToDuration

func SecondsToDuration(seconds uint64) (string, error)

func StringContains

func StringContains(list []string, s string) bool

func StringDeleteAllSlice

func StringDeleteAllSlice(a []string, b []string) ([]string, error)

func StringDeleteSlice

func StringDeleteSlice(list []string, s string) ([]string, error)

func UniqueSlices

func UniqueSlices(s []string, t []string) []string

Types

type Set

type Set struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet() *Set

func (*Set) Add

func (s *Set) Add(value string)

func (*Set) Contains

func (s *Set) Contains(value string) (exists bool)

func (*Set) Length

func (s *Set) Length() int

func (*Set) Remove

func (s *Set) Remove(value string)

func (*Set) Values

func (s *Set) Values() (values []string)

Jump to

Keyboard shortcuts

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