Documentation ¶
Overview ¶
Package internal provides additional utility functions that are needed in elPrep.
Index ¶
- Constants
- Variables
- func BinaryRead(r io.Reader, data interface{})
- func BoolHash(b bool) uint64
- func Close(f io.Closer)
- func Copy(dst io.Writer, src io.Reader) int64
- func Directory(file string) (directory string, files []string)
- func FileCreate(name string) *os.File
- func FileCreateAppendIfExists(name string) *os.File
- func FileOpen(name string) *os.File
- func FileOpenIfExists(name string) (*os.File, bool)
- func FilepathAbs(path string) string
- func MkdirAll(path string, perm os.FileMode)
- func ParseFloat(s string, bitSize int) float64
- func ParseInt(s string, base, bitSize int) int64
- func ParseUint(s string, base, bitSize int) uint64
- func RandReflect(r *Rand) int64
- func ReadFull(r io.Reader, buf []byte) int
- func RunCmd(cmd *exec.Cmd)
- func RunPipeline(p *pipeline.Pipeline)
- func StringHash(s string) (hash uint64)
- func Write(f io.Writer, b []byte) int
- func WriteByte(f io.ByteWriter, b byte)
- func WriteString(f io.StringWriter, s string) int
- type Rand
Constants ¶
const ( // PedanticMode is a Boolean flag for conditional compilation PedanticMode = false // PedanticMessage can be added to the overall program message PedanticMessage = "" )
Variables ¶
var BQSRTablenamePrefix string
Functions ¶
func BinaryRead ¶
BinaryRead is binary.Read with panics in place of errors
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. 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 FileCreate ¶
FileCreate is os.Create with panics in place of errors
func FileCreateAppendIfExists ¶ added in v5.0.1
FileCreateAppendIfExists creates a new file or opens if it already exists for appending
func FileOpenIfExists ¶
FileOpenIfExists is os.Oppen with panics in place of errors. Returns an additional boolean flag to indicate whether the actually exists or not.
func FilepathAbs ¶
FilepathAbs is filepath.Abs with panics in place of errors
func ParseFloat ¶
ParseFloat is strconv.ParseFloat with panics in place of errors
func RandReflect ¶
RandReflect works only in pedantic mode, so just panics unconditionally.
func RunPipeline ¶
RunPipeline is p.Run() with panics in place of errors
func StringHash ¶
StringHash returns a hash value for the given string value.
func WriteByte ¶
func WriteByte(f io.ByteWriter, b byte)
WriteByte is f.WriteByte with panics in place of errors
func WriteString ¶
func WriteString(f io.StringWriter, s string) int
WriteString is f.WriteString with panics in place of errors