blogc

package module
v0.0.0-...-331085f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

README

go-blogc

Write your own blogc build tool in Go!

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LibraryVersion string

go-blogc version.

View Source
var PackageVersion string

blogc package version as reported by the blogc binary. Output of `blogc -v`.

View Source
var Version string

blogc version number as reported by the blogc binary.

Functions

func OutputIsOutdated

func OutputIsOutdated(inputFiles []File, outputFile File) bool

func RequiredVersion

func RequiredVersion(v string) error

Types

type BuildContext

type BuildContext struct {
	Listing          bool
	GlobalVariables  []string
	InputFiles       []File
	ListingEntryFile File
	OutputFile       File
	TemplateFile     File
}

func (*BuildContext) Build

func (e *BuildContext) Build() error

func (*BuildContext) GetEvaluatedVariable

func (e *BuildContext) GetEvaluatedVariable(name string) (string, bool, error)

func (*BuildContext) NeedsBuild

func (e *BuildContext) NeedsBuild() bool

type File

type File interface {
	Path() string
	Close() error
	IsTempFile() bool
}

type FileBytes

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

func NewFileBytes

func NewFileBytes(in []byte) (*FileBytes, error)

func (*FileBytes) Close

func (f *FileBytes) Close() error

func (*FileBytes) IsTempFile

func (f *FileBytes) IsTempFile() bool

func (*FileBytes) Path

func (f *FileBytes) Path() string

func (*FileBytes) Read

func (f *FileBytes) Read() ([]byte, error)

type FilePath

type FilePath string

func (FilePath) Close

func (f FilePath) Close() error

func (FilePath) IsTempFile

func (f FilePath) IsTempFile() bool

func (FilePath) Path

func (f FilePath) Path() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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