parse

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Filepath, Filename, Title, Publisher, Collection string
	Authors                                          []string
	Tags                                             []string
}

func ParseFilename

func ParseFilename(filename string) (*Entity, error)

func ParseObject

func ParseObject(data interface{}) (*Entity, error)

type RawEntity

type RawEntity struct {
	RawAuthors string `regroup:"RawAuthors"`
	Title      string `regroup:"Title"`
	Publisher  string `regroup:"Publisher"`
	Collection string `regroup:"Collection"`
	RawTags    string `regroup:"RawTags"`
}

Jump to

Keyboard shortcuts

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