Documentation
¶
Index ¶
- Constants
- Variables
- func CheckArgumentCount(args []string, expected int) error
- func DrawWatermark(text []string, draw func(string))
- func FindAllByteOccurrences(data []byte, pattern []byte) []int
- func GetStringFromBytes(data []byte, start, end int) string
- func HexStringToBytes(hexStr string) ([]byte, error)
- func MapKeyValuePairs(lines []string) (map[string]string, error)
- func MoveEntry[T comparable](slice []T, entry T, newIndex int) []T
- func NewCommand(args []string, name string, argCount int) ([]string, error)
- func ReplaceByteOccurrences(original []byte, expectedBytes []byte, replacement []byte, ...) []byte
- func SplitArguments(input string) []string
- func StringToBytes(input string) []byte
- func WrapError(a func() (string, error)) string
Constants ¶
View Source
const BinSize int = 2
Variables ¶
View Source
var ErrNoFunctionName = errors.New("no function name")
Functions ¶
func CheckArgumentCount ¶
func DrawWatermark ¶
func FindAllByteOccurrences ¶
func GetStringFromBytes ¶
func HexStringToBytes ¶
func MoveEntry ¶
func MoveEntry[T comparable](slice []T, entry T, newIndex int) []T
func ReplaceByteOccurrences ¶
func SplitArguments ¶
func StringToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.