checking in some WIP

* added some netx funcs
* added netx/dnsx
* currently updating docs and adding *x funcs to sprigx
This commit is contained in:
brent saner
2026-02-24 17:41:57 -05:00
parent 4770052b52
commit c6fc692f5e
14 changed files with 2773 additions and 646 deletions

25
stringsx/types.go Normal file
View File

@@ -0,0 +1,25 @@
package stringsx
type (
/*
AsciiInvalidError is an error used to return an error for the IsAscii* validations.
It is returned on the first found instance of an invalid ASCII character.
*/
AsciiInvalidError struct {
// Line is a 0-indexed line number where the invalid character was found.
Line uint64
// LineByte is the 0-indexed byte position for the current Line.
LineByte uint64
// LineChar is a 0-indexed character (rune) position where the invalid character was found on line number Line.
LineChar uint64
// Byte is the 0-indexed byte position across the entire input.
Byte uint64
// Char is the 0-indexed character (rune) position across the entire input.
Char uint64
// BadChar is the invalid rune
BadChar rune
// BadBytes is BadChar as bytes.
BadBytes []byte
}
)