utils

package
v0.0.0-...-fd5fe55 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrRead       = "could not read file: %w"
	ErrParseInput = "could not parse input: %w"

	ConstUint32Bytes = 4
	ConstDecBase     = 10
)

Variables

View Source
var (
	ErrFileMissing      = errors.New("file missing")
	ErrFileMalFormatted = errors.New("file malformatted")
	ErrDirDoesNotExist  = errors.New("directory does not exist")
	ErrDirMustBeADir    = errors.New("directory must be a directory")
)

Functions

func FileExists

func FileExists(f string) bool

func PointerStr

func PointerStr(prefix string, id int32) string

func ReadBytes

func ReadBytes(r io.Reader) (uint32, []byte, error)

func ReadIdx

func ReadIdx(fileFullPath string) (idx []uint32, err error)

Types

type NoteWithTag

type NoteWithTag struct {
	// contains filtered or unexported fields
}

func ExplodeNote

func ExplodeNote(note string) []NoteWithTag

func (*NoteWithTag) GetNote

func (n *NoteWithTag) GetNote() string

func (*NoteWithTag) GetTag

func (n *NoteWithTag) GetTag() gedcom.Tag

Jump to

Keyboard shortcuts

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