metafile

package
v0.0.0-...-44e12ef Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package metafile implements reading of files with YAML headers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Changed

func Changed(name string, fi os.FileInfo) bool

Changed returns true if file info on disk changed compared to the given file info.

Types

type File

type File struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func Open

func Open(name string) (m *File, err error)

func (*File) Close

func (m *File) Close() error

func (*File) Content

func (m *File) Content() ([]byte, error)

func (*File) FileInfo

func (m *File) FileInfo() os.FileInfo

func (*File) HasMeta

func (m *File) HasMeta() bool

func (*File) Meta

func (m *File) Meta() map[string]interface{}

Jump to

Keyboard shortcuts

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