csn

package
v0.0.0-...-6dbdb8f Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const UsageMessage = `` /* 716-byte string literal not displayed */

Variables

This section is empty.

Functions

func FilterPage

func FilterPage(filter string, content io.ReadCloser) ([]string, error)

func ReadPage

func ReadPage(page Page) (io.ReadCloser, error)

Read Page will open a file by name and read the content and return an io.Reader

func ShowPages

func ShowPages(repo string) error

showPages will get the repository path, scan for pages and print the result one page per line.

Types

type Page

type Page struct {
	FullPath string
	Name     string
}

func ScanForPages

func ScanForPages(repo string) ([]Page, error)

Jump to

Keyboard shortcuts

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