linescanner

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: BSL-1.0 Imports: 0 Imported by: 0

README

linescanner

GoDoc

About

This package provides functions to parse properties. It is published on https://github.com/vbsw/misc/properties/linescanner.

References

Documentation

Overview

Package linescanner provides functions to parse property files of Java Properties File Format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineScanner

type LineScanner struct {
	Begin []int
	End   []int
	Empty bool
}

LineScanner holds indices for fields of a line.

func (*LineScanner) FieldValue

func (scanner *LineScanner) FieldValue(bytes []byte, index int) string

FieldValue returns field value as string.

func (*LineScanner) ScanLine

func (scanner *LineScanner) ScanLine(bytes, separator []byte, offset int) int

ScanLine processes one line searching for begin and end index of fields. Result is written to LineScanner fields. Returns offset of next line.

Jump to

Keyboard shortcuts

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