Documentation ¶
Index ¶
- Constants
- func AutomaticDecoder(byteString []byte, tryEncodings ...*charmap.Charmap) (string, error)
- func BytesEnsureIso(input []byte) []byte
- func BytesIsoDecoder(input []byte) ([]byte, error)
- func BytesIsoEncoder(input []byte) ([]byte, error)
- func BytesToIsoString(input []byte) (string, error)
- func BytesliceEqual(slices ...[]byte) bool
- func EnsureCrlfBytes(b []byte) []byte
- func EnsureCrlfString(s string) string
- func IdentifyInvalidUtf8(text string) error
- func IdentifyInvalidUtf8Bytes(byteText []byte) error
- func SliceContains(slice []string, value string) bool
- func SliceEqual(slices ...[]string) bool
- func StringEnsureIso(input string) string
- func StringIsoDecoder(input string) (string, error)
- func StringIsoEncoder(input string) (string, error)
Constants ¶
View Source
const NormCrChar = 13
View Source
const NormLfChar = 10
Variables ¶
This section is empty.
Functions ¶
func AutomaticDecoder ¶
func BytesEnsureIso ¶
func BytesIsoDecoder ¶
func BytesIsoEncoder ¶
func BytesToIsoString ¶
func BytesliceEqual ¶
func EnsureCrlfBytes ¶
Ensure the content is using CRLF line endings
func EnsureCrlfString ¶
Ensure the content is using CRLF line endings
func IdentifyInvalidUtf8 ¶
func SliceContains ¶
func SliceEqual ¶
func StringEnsureIso ¶
func StringIsoDecoder ¶
func StringIsoEncoder ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.