note

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Note

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

func New

func New(path string) *Note

func NewWithModified

func NewWithModified(path string, modified time.Time) *Note

func (*Note) Body

func (n *Note) Body() (string, error)

func (*Note) Created

func (n *Note) Created() (time.Time, error)

func (*Note) Modified

func (n *Note) Modified() (time.Time, error)

func (*Note) Path

func (n *Note) Path() string

func (*Note) RemoveTag

func (n *Note) RemoveTag(newTag tag.Tag) error

func (*Note) RemoveTagRegex

func (n *Note) RemoveTagRegex(regex *regexp.Regexp) error

func (*Note) Save

func (n *Note) Save() (bool, error)

Save returns true if file was modified.

func (*Note) SetTag

func (n *Note) SetTag(newTag tag.Tag) error

func (*Note) Tags

func (n *Note) Tags() ([]tag.Tag, error)
func (n *Note) UpdateLink(from, to string) error

Jump to

Keyboard shortcuts

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