utilz

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 45 Imported by: 40

Documentation

Index

Constants

View Source
const (
	Checkmark = "✓"
	XMark     = "✗"
)

TODO: number to color TODO: string to color TODO: short readable hash

View Source
const (
	FilenameTimeFormat = "Mon02Jan2006_15.04.05"
)

Variables

View Source
var (
	DebugPrefix   string = "[DEBU]"
	InfoPrefix    string = "[INFO]"
	SuccessPrefix string = Lime("[SUCC]")
	WarnPrefix    string = Yellow("[WARN]")
	ErrorPrefix   string = RedBG("[ERRO]")
	FatalPrefix   string = RedBG("[FATAL]")
)
View Source
var ConstantPredeterminedLength = 60
View Source
var ErrNotDir = errors.New("path is not a directory")
View Source
var (
	LogIncludeLevel bool = true
)

Functions

func AddNumericSuffixIfFileExists

func AddNumericSuffixIfFileExists(filePath string) string

AddNumericSuffixIfFileExists: if the specified file exists, a numeric suffix is added to the name of the file, right before the extension; numeric suffixes are tried incrementally until a non-existing file is idedntified; the complete filepath is returned (no file is created at this stage).

func AllFalse

func AllFalse(bools ...bool) bool

func AllTrue

func AllTrue(bools ...bool) bool

func AnyIsEmptyString

func AnyIsEmptyString(slice ...string) bool

func Atoi

func Atoi(s string) (int, error)

func BellSound

func BellSound()

func Black

func Black(s string) string

func BlackBG

func BlackBG(s string) string

func Blacklist

func Blacklist(items []string, blacklist []string) []string

Blacklist filters out elements from the `items` slice that are also present in the `blacklist` slice; a simple == comparison is done.

func BlacklistGlob

func BlacklistGlob(items []string, blacklist []string) []string

BlacklistGlob filters out elements from the `items` slice that match any pattern from the `blacklist` slice; a glob comparison is done.

func Bold

func Bold(message string) string

func CLIAskPassword

func CLIAskPassword() ([]byte, error)

CLIAskPassword prompts the user for a password input fro the CLI

func CLIAskString

func CLIAskString() (string, error)

CLIAskString prompts the user for a string input from the CLI

func CLIAskYesNo

func CLIAskYesNo(message string) (bool, error)

CLIAskYesNo parses an input from the terminal and returns whether the response is affirmative or negative.

func CLIMustConfirmYes

func CLIMustConfirmYes(message string)

func Change

func Change(before int64, after int64) float64

Change calculate what is the percentage increase/decrease from [number1] to [number2] For example 60 is 200% increase from 20 It returns result as float64

func CloneSlice

func CloneSlice(sl []string) []string

func Colorize

func Colorize(str string) string

func ColorizeBG

func ColorizeBG(str string) string

func CombineErrors

func CombineErrors(errs ...error) error

func ConcatBytesFromStrings

func ConcatBytesFromStrings(strs ...string) ([]byte, error)

ConcatBytesFromStrings concatenates multiple strings into one array of bytes

func ConstantLength

func ConstantLength(s string) string

func CountLines

func CountLines(r io.Reader) (int, error)

func Countdown

func Countdown(ticker Ticker, duration time.Duration) chan time.Duration

func CreateFolderIfNotExists

func CreateFolderIfNotExists(name string, perm os.FileMode) error

CreateFolderIfNotExists creates a folder if it does not exists

func CryptoRandomIntRange

func CryptoRandomIntRange(min, max int) int

CryptoRandomIntRange returns a random integer in the given range. Randomness is from "crypto/rand" package.

func CustomConstantLength

func CustomConstantLength(ln int, s string) string

func Debugf

func Debugf(format string, a ...interface{})

func DebugfWithParameters

func DebugfWithParameters(params []LogHeaderParameter, format string, a ...interface{})

func DebuglnWithParameters

func DebuglnWithParameters(params []LogHeaderParameter, a ...interface{})

func Deduplicate

func Deduplicate(a []string) []string

Deduplicate returns a deduplicated copy of a.

func DeduplicateInts

func DeduplicateInts(a []int) []int

func DefaultNotify

func DefaultNotify(handler func(os.Signal) bool)

func DeterministicRandomIntRange

func DeterministicRandomIntRange(min, max int) int

RandomIntRange returns a random integer in the given range

func DirExists

func DirExists(path string) (bool, error)

func Dump

func Dump(a ...interface{})

func Errorf

func Errorf(format string, a ...interface{})

func Errorln

func Errorln(a ...interface{}) (n int, err error)

func Fatalf

func Fatalf(format string, a ...interface{})

func Fataln

func Fataln(a ...interface{})

func FileExists

func FileExists(filepath string) (bool, error)

func FileExistsWithStat

func FileExistsWithStat(filepath string) (os.FileInfo, bool, error)

func FilterExclude

func FilterExclude(ss []string, filter func(s string) bool) []string

FilterExclude returns a new array of items that do not match the filter func; for any item in `ss`, if the `filter` func returns true, then the item will be excluded from the result slice.

func FilterModify

func FilterModify(ss []string, filter func(s string) string) []string

FilterModify returns a new array containing the values of `ss` after they have been processed by the func `filter`; no modification to `ss` is done.

func FormatByteSlice

func FormatByteSlice(buf []byte) string

func FormatErrorArray

func FormatErrorArray(prefix string, errs []error) string

func GenerateIntRangeInclusive

func GenerateIntRangeInclusive(from, to int) []int

Generate number range including `from` and `to`.

func GetAddedRemoved

func GetAddedRemoved(previous []string, next []string) (added []string, removed []string)

func GetBaseDomain

func GetBaseDomain(name string) (string, string)

GetBaseDomain returns the first label after the domain extension, ad the domain extension.

e.g. example.com -> example + .com e.g. subdomain.example.com -> example + .com

e.g. example.co.uk -> example + .co.uk e.g. subdomain.example.co.uk -> example + .co.uk

func GetCallerLocation

func GetCallerLocation(callDepth int) (string, int)

GetCallerLocation returns the source location of the call at callDepth stack frames above the call.

func GetDomainExtension

func GetDomainExtension(name string) string

GetDomainExtension returns the domain extension (among the known ones) of the provided host names.

func GetFormattedPercent

func GetFormattedPercent(done int64, all int64) string

func GetPercent

func GetPercent(done int64, all int64) float64

func GoFuncErrChan

func GoFuncErrChan(f func() error) chan error

func HardWaitSystemSignal

func HardWaitSystemSignal(callback func(), messages ...string)

HardWaitSystemSignal calls the callback at first signal, and waits for the callback to finish; when the callback finishes, HardWaitSystemSignal also finishes. If a second sygnal is sent before the callback finishes, a hard os.Exit is done.

func HasAnySuffix

func HasAnySuffix(s string, suffixes ...string) bool

HasAnySuffix returns true if the string s has any of the prefixes provided.

func HasAnySuffixDottedOrNot

func HasAnySuffixDottedOrNot(s string, suffixes ...string) bool

HasAnySuffixDottedOrNot returns true if the string s has any of the suffixes, whether they are in the .<suffix> or <suffix> variant.

func HasMatch

func HasMatch(item string, patterns []string) (string, bool)

HasMatch finds the matching pattern (glob) to which the provided item matches.

func HashAnyWithJSON

func HashAnyWithJSON(v interface{}) (uint64, error)

func HashBytes

func HashBytes(b []byte) uint64

func HashString

func HashString(s string) uint64

func HighlightAnyCase

func HighlightAnyCase(str, substr string, colorer func(string) string) string

func HighlightLimeBG

func HighlightLimeBG(str, substr string) string

func HighlightRedBG

func HighlightRedBG(str, substr string) string

func IndentWithSpaces

func IndentWithSpaces(n int, s string) string

func IndentWithTabs

func IndentWithTabs(n int, s string) string

func Indigo

func Indigo(s string) string

func IndigoBG

func IndigoBG(s string) string

func Infof

func Infof(format string, a ...interface{})

func InitDomainExtensions

func InitDomainExtensions(path string)

func IntSliceContains

func IntSliceContains(slice []int, element int) bool

IntSliceContains returns true if the provided slice of ints contains the element

func IsAnyOf

func IsAnyOf(s string, candidates ...string) bool

func IsByteSlice

func IsByteSlice(v interface{}) bool

func IsFolder

func IsFolder(path string) (bool, error)

func IsLastUnicode

func IsLastUnicode(s string) bool

func IsLight

func IsLight(rr, gg, bb uint64) bool

IsLight returns whether the color is perceived to be a light color

func IsNotAnyOf

func IsNotAnyOf(s string, candidates ...string) bool

func IterateStringAsRunes

func IterateStringAsRunes(s string, callback func(r rune) bool)

func Itoa

func Itoa(i int) string

func KitchenTimeMsNow

func KitchenTimeMsNow() string

func KitchenTimeNow

func KitchenTimeNow() string

func Lime

func Lime(str string) string

func LimeBG

func LimeBG(str string) string

func ListChildDirs

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

ListChildDirs lists folders (full path) inside the specified folder (just first level; no grandchildren); if the provided filepath is not a folder, and error is returned.

func ListChildDirsWithBlacklist

func ListChildDirsWithBlacklist(path string, blacklistPatterns []string) ([]string, error)

ListChildDirsWithBlacklist lists the child folders (full path) of a parent folder, filtering out folders that match one of the provided blacklist glob patterns.

func ListChildDirsWithWhitelist

func ListChildDirsWithWhitelist(path string, whitelistPatterns []string) ([]string, error)

ListChildDirsWithWhitelist lists the child folders (full path) of a parent folder, filtering out folders that DON'T match any of the provided whitelist glob patterns.

func ListFiles

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

ListFiles lists files (full path) inside the specified folder (just first level; no grandchildren); if the provided filepath is not a folder, and error is returned.

func Ln

func Ln(a ...interface{})

func LoadJSON

func LoadJSON(ptr interface{}, filepath string) error

func LoadYaml

func LoadYaml(ptr interface{}, filepath string) error

func LogElapsedFromLastLogMessage

func LogElapsedFromLastLogMessage() string

LogElapsedFromLastLogMessage adds to the log header the time passed from the last log call.

func LogElapsedFromStart

func LogElapsedFromStart() string

LogElapsedFromStart adds the time passed from the program start.

func LogMessageNumber

func LogMessageNumber() string

LogMessageNumber adds the index of the log call (incremental) to the log header.

func LogParamCallStack

func LogParamCallStack() string

LogParamCallStack adds the file and line number of the log call to the log message.

func LogParamTimestamp

func LogParamTimestamp() string

LogParamTimestamp adds a timestamp of current time to the log header.

func LogParamTimestampMs

func LogParamTimestampMs() string

LogParamTimestamp adds a timestamp of current time (that inludes milliseconds) to the log header.

func LogRunID

func LogRunID() string

LogRunID adds to the log header the unique ID of this program run.

func MoreThanOneIsTrue

func MoreThanOneIsTrue(bools ...bool) bool

func MustAbs

func MustAbs(path string) string

func MustAtoi

func MustAtoi(s string) int

func MustCopyFile

func MustCopyFile(src, dst string)

func MustCreateFolderIfNotExists

func MustCreateFolderIfNotExists(path string, perm os.FileMode)

func MustFileExists

func MustFileExists(path string) bool

func MustGetenv

func MustGetenv(key string) string

func MustHashAnyWithJSON

func MustHashAnyWithJSON(v interface{}) uint64

func MustLoadJSON added in v0.1.3

func MustLoadJSON(ptr interface{}, filepath string)

func MustParseUnicode

func MustParseUnicode(code string) string

func MustParseUnicodeAsRune

func MustParseUnicodeAsRune(code string) rune

func MustRemoveFile

func MustRemoveFile(path string)

func MustSaveAsIndentedJSON added in v0.1.3

func MustSaveAsIndentedJSON(v interface{}, filepath string)

func MustSaveAsJSON added in v0.1.3

func MustSaveAsJSON(v interface{}, filepath string)

func NewHTMLTemplateFromFile

func NewHTMLTemplateFromFile(path string) (*htmltemplate.Template, error)

func NewHTMLTemplateFromFileWithFuncs

func NewHTMLTemplateFromFileWithFuncs(path string, funcs htmltemplate.FuncMap) (*htmltemplate.Template, error)

func NewSectionReader

func NewSectionReader(file *os.File) *io.SectionReader

NewSectionReader creates a SectionReader from the provided file.

func NewSpacesIndenter

func NewSpacesIndenter(spaceWidth int) func(n int, s string) string

func NewTextTemplateFromFile

func NewTextTemplateFromFile(path string) (*texttemplate.Template, error)

func NewTextTemplateFromFileWithFuncs

func NewTextTemplateFromFileWithFuncs(path string, funcs texttemplate.FuncMap) (*texttemplate.Template, error)

func NewTextTemplateFromString

func NewTextTemplateFromString(name string, tpl string) (*texttemplate.Template, error)

func NewTicker

func NewTicker(duration time.Duration) <-chan time.Time

NewTicker returns a time channel that ticks ever specified interval, with the initial tick righ when you start listening.

func NewTimer

func NewTimer() func() time.Duration

func NewTimerRaw

func NewTimerRaw() func() time.Duration

func NewUniqueElements

func NewUniqueElements(orig []string, add ...string) []string

NewUniqueElements removes elements that have duplicates in the original or new elements.

func NewUniqueInts

func NewUniqueInts(orig []int, add ...int) []int

NewUniqueInts removes elements that have duplicates in the original or new elements.

func Notify

func Notify(handler OsSignalHandler, signals ...os.Signal)

Notify calls handler when gets specified signals and pass given signal to handler. If handler returns false, notify stops waiting for signals.

func Orange

func Orange(message string) string

func OrangeBG

func OrangeBG(message string) string

func PanicIfAlreadyExists

func PanicIfAlreadyExists(path string)

func ParseIntervals

func ParseIntervals(s string) ([]int, error)

ParseIntervals parses a string representing a list of unsigned integers or integer ranges (using dashes).

func ParseUnicode

func ParseUnicode(code string) (rune, error)

func Percent

func Percent(pcent int64, all int64) float64

Percent calculate what is [percent]% of [number] For Example 25% of 200 is 50 It returns result as float64

func PercentOf

func PercentOf(current int64, all int64) float64

PercentOf calculate [number1] is what percent of [number2] For example 300 is 12.5% of 2400 It returns result as float64

func Purple

func Purple(s string) string

func PurpleBG

func PurpleBG(s string) string

func Q

func Q(v ...interface{})

Q to stderr

func Qs

func Qs(v ...interface{})

Q to stdout

func RandomIntRange

func RandomIntRange(min, max int) int

RandomIntRange returns a random integer in the given range; Randomness is from "math/rand" package.

func RandomString

func RandomString(n int) string

RandomString returns a randomly-generated string of length = n

func ReadConfigLinesAsString

func ReadConfigLinesAsString(filepath string, iterator func(line string) bool) error

ReadConfigLinesAsString iterates on the lines of a text file, trimming spaces, ignoring empty lines and comments.

func ReadFileLinesAsString

func ReadFileLinesAsString(filepath string, iterator func(line string) bool) error

ReadFileLinesAsString iterates on the lines of a text file

func ReadStringLineByLine

func ReadStringLineByLine(s string, iterator func(line string) bool) error

ReadStringLineByLine iterates over a multiline string

func Red

func Red(str string) string

func RedBG

func RedBG(s string) string

func RepeatString

func RepeatString(n int, char string) string

func RetryExponentialBackoff

func RetryExponentialBackoff(attempts int, initialSleep time.Duration, task func() error) []error

RetryExponentialBackoff executes task; if it returns an error, it will retry executing the task the specified number of times before giving up, and at each retry it will sleep double the amout of time of the previous retry; the initial sleep time is specified by the user.

func RetryLinearBackoff

func RetryLinearBackoff(attempts int, sleep time.Duration, task func() error) []error

func ReturnNSpaces

func ReturnNSpaces(n int) string

func ReverseDNSLabels

func ReverseDNSLabels(hostname string) string

ReverseDNSLabels reverses the labels of a DNS, and returns the DNS name.

func ReverseIntSlice

func ReverseIntSlice(ss []int)

ReverseIntSlice reverses a slice integers.

func ReverseString

func ReverseString(s string) string

Reverses a string

func ReverseStringSlice

func ReverseStringSlice(ss []string)

ReverseStringSlice reverses a string slice

func RunBatch

func RunBatch(fn ...RunBatchFunc) error

RunBatch runs all functions simultaneously and waits until execution has completed or an error is encountered.

func SanitizeFileNamePart

func SanitizeFileNamePart(part string) string

func SaveAsIndentedJSON

func SaveAsIndentedJSON(v interface{}, filepath string) error

func SaveAsJSON

func SaveAsJSON(v interface{}, filepath string) error

func SaveAsYaml

func SaveAsYaml(v interface{}, filepath string) error

func Sdump

func Sdump(a ...interface{}) string

func Sf

func Sf(format string, a ...interface{}) string

func Sfln

func Sfln(format string, a ...interface{})

Sfln is alias of fmt.Println(fmt.Sprintf())

func Shakespeare

func Shakespeare(str string) string

light blue?

func ShakespeareBG

func ShakespeareBG(str string) string

func ShuffleCryptoRand

func ShuffleCryptoRand(n int, swap func(i, j int))

func ShuffleIntSliceCryptoRand

func ShuffleIntSliceCryptoRand(a []int)

func ShuffleIntSliceMathRand

func ShuffleIntSliceMathRand(a []int)

func ShuffleMathRand

func ShuffleMathRand(n int, swap func(i, j int))

func SizeOfFile

func SizeOfFile(file *os.File) int64

Size returns the size in bytes of the file.

func SliceContains

func SliceContains(slice []string, element string) bool

SliceContains returns true if the provided slice of strings contains the element

func SplitStringByRune

func SplitStringByRune(s string) []rune

func SplitStringByRuneAsStringSlice

func SplitStringByRuneAsStringSlice(s string) []string

func SplitStringSlice

func SplitStringSlice(parts int, slice []string) [][]string

func Sq

func Sq(v ...interface{}) string

Q to a string

func StringToColor

func StringToColor(str string) func(string) string

func StringToColorBG

func StringToColorBG(str string) func(string) string

func Successf

func Successf(format string, a ...interface{})

func ThisFuncName

func ThisFuncName() string

func ToCamel

func ToCamel(s string) string

ToCamel converts a string to CamelCase

func ToCamelWithAcronyms added in v0.1.1

func ToCamelWithAcronyms(
	s string,
	acronyms map[string]bool,
) string

ToCamel converts a string to CamelCase

func ToDelimited

func ToDelimited(s string, delimiter uint8) string

ToDelimited converts a string to delimited.snake.case (in this case `delimiter = '.'`)

func ToKebab

func ToKebab(s string) string

ToKebab converts a string to kebab-case

func ToLower

func ToLower(s string) string

func ToLowerCamel

func ToLowerCamel(s string) string

ToLowerCamel converts a string to lowerCamelCase

func ToLowerCamelWithAcronyms added in v0.1.1

func ToLowerCamelWithAcronyms(
	s string,
	acronyms map[string]bool,
) string

ToLowerCamel converts a string to lowerCamelCase

func ToScreamingDelimited

func ToScreamingDelimited(s string, delimiter uint8, ignore uint8, screaming bool) string

ToScreamingDelimited converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `delimiter = '.'; screaming = true`) or delimited.snake.case (in this case `delimiter = '.'; screaming = false`)

func ToScreamingKebab

func ToScreamingKebab(s string) string

ToScreamingKebab converts a string to SCREAMING-KEBAB-CASE

func ToScreamingSnake

func ToScreamingSnake(s string) string

ToScreamingSnake converts a string to SCREAMING_SNAKE_CASE

func ToSnake

func ToSnake(s string) string

ToSnake converts a string to snake_case

func ToSnakeWithIgnore

func ToSnakeWithIgnore(s string, ignore uint8) string

func ToStringKeyVals

func ToStringKeyVals(keyvals ...string) (keys []string, vals []string)

func ToTitle

func ToTitle(s string) string

func TranscodeJSON

func TranscodeJSON(input interface{}, destinationPointer interface{}) error

TranscodeJSON converts the input to json, and then unmarshals it into the destination. The destination must be a pointer.

func TranscodeYAML

func TranscodeYAML(input interface{}, destinationPointer interface{}) error

TranscodeYAML converts the input to yaml, and then unmarshals it into the destination. The destination must be a pointer.

func TrimDNSLabelFromBeginning

func TrimDNSLabelFromBeginning(name string) (string, string)

TrimDNSLabelFromBeginning removes one label from the DNS name, and returns the new DNS name and the removed label.

func TrimExt

func TrimExt(p string) string

TrimExt trims the file extension of the file(path).

func TrimFrom

func TrimFrom(s string, after string) string

TrimFrom removes the string `after` from the string `s` and anything that comes after it.

func UniqueAppend

func UniqueAppend(orig []string, add ...string) []string

UniqueAppend behaves like the Go append, but does not add duplicate elements.

func UniqueAppendInts

func UniqueAppendInts(orig []int, add ...int) []int

UniqueAppendInts behaves like the Go append, but does not add duplicate elements.

func WaitHasTimedout

func WaitHasTimedout(wg *sync.WaitGroup, timeout time.Duration) (timedout bool)

WaitHasTimedout waits for the waitgroup for the specified max timeout. Returns true if waiting timed out.

func WaitSystemSignal

func WaitSystemSignal(messages ...string)

func Warnf

func Warnf(format string, a ...interface{})

func White

func White(s string) string

func WhiteBG

func WhiteBG(s string) string

func WhitelistGlob

func WhitelistGlob(items []string, whitelist []string) []string

WhitelistGlob filters out elements from the `items` slice that DON'T match any pattern from the `whitelist` slice; a glob comparison is done.

func Yellow

func Yellow(message string) string

func YellowBG

func YellowBG(message string) string

Types

type CombinedErrors

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

func (*CombinedErrors) Error

func (ce *CombinedErrors) Error() string

type ElasticStringIterator

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

func NewElasticStringIterator

func NewElasticStringIterator(arr []string) *ElasticStringIterator

func (*ElasticStringIterator) Iterate

func (e *ElasticStringIterator) Iterate(callback func(s string) ([]string, bool))

type ExitLight added in v0.1.3

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

func NewExitLight added in v0.1.3

func NewExitLight() *ExitLight

func (*ExitLight) IsExiting added in v0.1.3

func (light *ExitLight) IsExiting() bool

func (*ExitLight) SetAsExiting added in v0.1.3

func (light *ExitLight) SetAsExiting()

type FlagStringArray

type FlagStringArray []string

func (*FlagStringArray) Set

func (i *FlagStringArray) Set(value string) error

func (*FlagStringArray) String

func (i *FlagStringArray) String() string

type LogHeaderParameter

type LogHeaderParameter func() string

type OsSignalHandler

type OsSignalHandler func(os.Signal) bool

type Replacer

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

func NewReplacer

func NewReplacer(s string, n int) *Replacer

func (*Replacer) Replace

func (re *Replacer) Replace(old, new string) *Replacer

func (*Replacer) String

func (re *Replacer) String() string

type RunBatchFunc

type RunBatchFunc func() error

RunBatchFunc is the function signature for RunBatch.

type SizedGroup added in v0.1.3

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

func NewSizedGroup added in v0.1.3

func NewSizedGroup(cNum int64) *SizedGroup

func SizedGroupWithContext added in v0.1.3

func SizedGroupWithContext(ctx context.Context) (*SizedGroup, context.Context)

func (*SizedGroup) Go added in v0.1.3

func (g *SizedGroup) Go(f func() error)

Go calls the given function in a new goroutine.

The first call to return a non-nil error cancels the group; its error will be returned by Wait.

func (*SizedGroup) Wait added in v0.1.3

func (g *SizedGroup) Wait() error

Wait blocks until all function calls from the Go method have returned, then returns the first non-nil error (if any) from them.

type TickFunc

type TickFunc func(d time.Duration)

type Ticker

type Ticker interface {
	Duration() time.Duration
	Tick()
	Stop()
}

/ ticker countdown

func NewTickerCountdown

func NewTickerCountdown(d time.Duration) Ticker

type WriteByWrite

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

func NewWriteByWrite

func NewWriteByWrite(name string) *WriteByWrite

func (*WriteByWrite) Bytes

func (rec *WriteByWrite) Bytes() []byte

func (WriteByWrite) String

func (rec WriteByWrite) String() string

func (*WriteByWrite) Write

func (rec *WriteByWrite) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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