utils

package
v0.0.0-...-e63706e Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanProjectName

func CleanProjectName(name string) string

CleanProjectName returns project name stripped until the first forbidden symbol

func ContentLength

func ContentLength(resp *http.Response) int

func GetPackage

func GetPackage(website string) string

func IsDirEmpty

func IsDirEmpty(dir string) bool

func PrepareGlobalLog

func PrepareGlobalLog(homeDir string) (*os.File, error)

func TeeReaderAt

func TeeReaderAt(r io.ReaderAt, w io.WriterAt) io.ReaderAt

Types

type StringSet

type StringSet map[string]struct{}

func NewStringSet

func NewStringSet() StringSet

func (*StringSet) Add

func (s *StringSet) Add(v string)

func (*StringSet) Entries

func (s *StringSet) Entries() (entries []string)

func (*StringSet) Single

func (s *StringSet) Single() (v string, err error)

Jump to

Keyboard shortcuts

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