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

helferlein

package module
v0.0.0-...-266c023 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 6 Imported by: 9

README

helferlein

a collection of util functions in go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(input string, words []string) bool

Checks if a string contains a substring form a slice of strings

func DownloadFile

func DownloadFile(url string, filepath string) error

DownloadFiles downloads a file to a given path

func ReadLines

func ReadLines(path string) ([]string, error)

ReadLines reads a whole file into memory and returns a slice of its lines.

func StringInSlice

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

StringInSlice checks if a string is in a slice of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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