publish

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotTarget on specified filepath.
	ErrNotTarget = failure.StringCode("not target file")
	// ErrFileCannotLoad on specified filepath.
	ErrFileCannotLoad = failure.StringCode("file cannot load")
	// ErrFileEmpty on specified filepath.
	ErrFileEmpty = failure.StringCode("file is empty")
	// ErrFileContentMismatch on specified filepath.
	ErrFileContentMismatch = failure.StringCode("file content mismatch")
	// ErrContentIsReservedButNotDraft on specified filepath.
	ErrContentIsReservedButNotDraft = failure.StringCode("content is reserved but not draft")
	// ErrContentIsNotReserved on specified filepath.
	ErrContentIsNotReserved = failure.StringCode("content is not reserved")
	// ErrContentIsNotTheTimeYet on specified filepath.
	ErrContentIsNotTheTimeYet = failure.StringCode("content is not the time yet")
)

Functions

This section is empty.

Types

type Publisher

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

Publisher doing publish reserved content.

func New

func New(reservedKey string, draftKey string, imageReplaceFormat string) *Publisher

New is constructor of Publisher.

func (*Publisher) CheckReservedAndPublish

func (p *Publisher) CheckReservedAndPublish(fpath string) error

CheckReservedAndPublish reserved content.

Jump to

Keyboard shortcuts

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