files

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLine

func AddLine(line string, fileName string)

func AddLineUnique

func AddLineUnique(line string, fileName string)

AddLineUnique adds the line to the file if it will be the only occurrence of the string.

func AddLinesUnique

func AddLinesUnique(lines []string, filename string)

AddLinesUnique adds all lines to the file if each one will be the only occurrence of the string.

func Bytes

func Bytes(fileName string) []byte

Bytes gets bytes of a file or panics.

func Exists

func Exists(fileName string) bool

func Lines

func Lines(fileName string) []string

Lines reads all lines from a file.

func RemoveIfExists

func RemoveIfExists(fileName string)

func StringToTempFile

func StringToTempFile(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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