Documentation ¶
Index ¶
- func ParseInt[N constraints.Signed](b []byte) (N, error)
- func ParseUint[N constraints.Unsigned](b []byte) (N, error)
- func ScanLines(data []byte, atEOF bool) (advance int, token []byte, err error)
- type IPCKeyValue
- func ParseConstant(str string, b []byte, v IPCKeyValue) (IPCKeyValue, error)
- func ParseIPNet[K fmt.Stringer](b []byte) (IPCKeyValue, error)
- func ParseInt64[K fmt.Stringer](b []byte) (IPCKeyValue, error)
- func ParseKey[K fmt.Stringer, T wgkey.Type](b []byte) (IPCKeyValue, error)
- func ParseOne[K fmt.Stringer](b []byte) (IPCKeyValue, error)
- func ParseTrue[K fmt.Stringer](b []byte) (IPCKeyValue, error)
- func ParseUDPAddr[K fmt.Stringer](b []byte) (IPCKeyValue, error)
- func ParseUint16[K fmt.Stringer](b []byte) (IPCKeyValue, error)
- func ParseUint32[K fmt.Stringer](b []byte) (IPCKeyValue, error)
- func ParseUint64[K fmt.Stringer](b []byte) (IPCKeyValue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanLines ¶
ScanLines is a split function for a Scanner that returns each line of text, stripped of any trailing end-of-line marker. The returned line may NOT be empty. The end-of-line marker is NO carriage return followed by one mandatory newline. In regular expression notation, it is `\n`. The last non-empty line of input will ONLY be returned even if it HAS A newline.
This is modified from the build in bufio.ScanLines, with the difference being that is requires lines to end with a newline.
Types ¶
type IPCKeyValue ¶
func ParseConstant ¶
func ParseConstant(str string, b []byte, v IPCKeyValue) (IPCKeyValue, error)
func ParseIPNet ¶
func ParseIPNet[K fmt.Stringer](b []byte) (IPCKeyValue, error)
func ParseInt64 ¶
func ParseInt64[K fmt.Stringer](b []byte) (IPCKeyValue, error)
func ParseUDPAddr ¶
func ParseUDPAddr[K fmt.Stringer](b []byte) (IPCKeyValue, error)
func ParseUint16 ¶
func ParseUint16[K fmt.Stringer](b []byte) (IPCKeyValue, error)
func ParseUint32 ¶
func ParseUint32[K fmt.Stringer](b []byte) (IPCKeyValue, error)
func ParseUint64 ¶
func ParseUint64[K fmt.Stringer](b []byte) (IPCKeyValue, error)
Click to show internal directories.
Click to hide internal directories.