utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(ss ...string) (result bool)

func Cry

func Cry(e error)

func GetFileSize

func GetFileSize(path string) (int64, error)

func ReadStdin

func ReadStdin() ([]byte, error)

func ValidateHtml

func ValidateHtml(payload string) error

Types

type LineIterator

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

func NewLineIterator

func NewLineIterator(reader io.Reader, capacity int64) *LineIterator

func NewLineIteratorFromPath

func NewLineIteratorFromPath(path string, capacity int) *LineIterator

func (*LineIterator) Next

func (lineIterator *LineIterator) Next() ([]byte, error)

func (*LineIterator) ReadUntilEOF

func (lineIterator *LineIterator) ReadUntilEOF() string

Jump to

Keyboard shortcuts

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