data

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InnerLink(body string) string

func Save

func Save(o *Object) error

Save write done Body after NewObject() generate the p

func UnzipFiles

func UnzipFiles(inPath, outPath, passwd string) error

func ZipFiles

func ZipFiles(filesPath, zipPath, passwd string) error

func ZipFiles2

func ZipFiles2(inPath, outPath, passwd string) error

ZipWriter zip files in inPath to outPath, notice: outPath contains zip file name

Types

type HomePage

type HomePage struct {
	Title, Body, Folder, FileTitle string
	Data                           []interface{}
	Atts                           []os.FileInfo
	Objs                           *Objects
	Err                            error
	Info                           string
}

type Object

type Object struct {
	Title, Body, Folder, FileTitle string
	Data                           []interface{}
	Err                            error
	Info                           string
}

func ListAttachments added in v0.0.4

func ListAttachments(o *Object) (*Object, error)

func Load

func Load(o *Object) (*Object, error)

load read person info after NewObject() generate the p

func LoadHomePage

func LoadHomePage() (*Object, error)

func NewObject

func NewObject(title string) (*Object, error)

type Objects

type Objects struct {
	Title string
	Data  []string
	Err   error
	Info  string
}

func ListObjects

func ListObjects() (*Objects, error)

Jump to

Keyboard shortcuts

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