You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
obsidian-pipeline/pipeline.go

29 lines
495 B
Go

package obspipeline
import (
"go.uber.org/zap"
)
func NewPipeline(dev bool) *Pipeline {
var p Pipeline
var l *zap.Logger
l, _ = zap.NewProduction()
if dev {
l, _ = zap.NewDevelopment()
}
p.L = l
p.Attachments = make(map[string]string)
p.Posts = make([]string, 0)
return &p
}
type Pipeline struct {
Source, Target string
Attachments map[string]string
Notes, Posts []string
L *zap.Logger
BlogDir, AttachmentsDir string
}