utils

package
v0.0.0-...-e606c52 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckJumpLabelName

func CheckJumpLabelName(varName string) error

func CheckParamName

func CheckParamName(varName string) error

func IntToStrHex

func IntToStrHex(num int, strLength int) (string, error)

func IsOverflow

func IsOverflow(num uint, availableBits int) bool

func IsValidName

func IsValidName(varName string) bool

func LineNormalization

func LineNormalization(line string) string

func RemoveNewLine

func RemoveNewLine(line string) string

func StrToPositiveInt

func StrToPositiveInt(numStr string) (int, error)

Types

type MyBufferAsFile

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

MyBufferAsFile

func NewMyBufferAsFile

func NewMyBufferAsFile(b io.Reader, n string) MyBufferAsFile

func (*MyBufferAsFile) Close

func (m *MyBufferAsFile) Close() error

func (*MyBufferAsFile) Name

func (m *MyBufferAsFile) Name() string

func (*MyBufferAsFile) Reader

func (m *MyBufferAsFile) Reader() io.Reader

type MyFile

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

MyFile

func NewMyFile

func NewMyFile(f os.File) MyFile

func (*MyFile) Close

func (m *MyFile) Close() error

func (*MyFile) Name

func (m *MyFile) Name() string

func (*MyFile) Reader

func (m *MyFile) Reader() io.Reader

type MyFileInterface

type MyFileInterface interface {
	Reader() io.Reader
	Name() string
	Close() error
}

Jump to

Keyboard shortcuts

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