Documentation ¶
Overview ¶
Package internal provides additional utility functions that are needed in elPrep.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Directory ¶
Directory returns a slice of filenames. If the given filename refers to a directory, return a slice of names of files that are in this directory. If the given filename does not refer to a directory, return a slice with this filename as the only entry.
func FullPathname ¶
FullPathname returns the given filename if it is absolute. Otherwise, it joins it with the current working directory.
func ReleaseByteBuffer ¶
func ReleaseByteBuffer(buf *[]byte)
ReleaseByteBuffer returns the given slice of bytes to the internal sync.Pool from which ReserveByteBuffer can fetch it again.
func ReserveByteBuffer ¶
func ReserveByteBuffer() *[]byte
ReserveByteBuffer uses a sync.Pool to either reuse or make a slice of bytes of length 0, but of capacity potentially larger than 0.
Use ReleaseByteBuffer to return slices of bytes to the internal pool.
func StringHash ¶
StringHash returns a hash value for the given string value.
Types ¶
This section is empty.