encodedtext

package
v0.0.0-...-04763f7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package encodedtext parses plain text messages that are in encodings other than utf-8.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(e Encoding) parsers.Parser

New builds a new parser for decoding encoded logfiles. It treats each input message as entirely content, in the given encoding. No timetamp or other metadata are returned.

Types

type Encoding

type Encoding int

Encoding specifies the encoding which should be decoded by the DecodingParser

const (
	// UTF16LE UTF16 little endian, most common (windows)
	UTF16LE Encoding = iota
	// UTF16BE UTF16 big endian
	UTF16BE
	// SHIFTJIS Shift JIS (Japanese)
	SHIFTJIS
)

Jump to

Keyboard shortcuts

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