utils

package
v0.0.0-...-c3cc141 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMeta

func ParseMeta(content, outputFileURL, originalFilename, URLBase string) model.Entry

ParseMeta takes in a .md file and processes all of the data from it

*content: the contents of the .md file
*outputFileURL: URL of the output HTML file that the entry will be generated to
*originalFilename: File name of the original .md file
*URLBase: the URL where the base website is located (ie for https://jacobkania.github.io/mmssg, this would be "mmssg")

func ParsePathFromUserInput

func ParsePathFromUserInput(userInput string, isFile bool) string

ParsePathFromUserInput will turn user input into an OS path

*userInput: the text that the user gives
*isFile: whether the result will be a file or directory

func ReadFlags

func ReadFlags() model.Flags

ReadFlags reads the command flags into a model

Types

This section is empty.

Jump to

Keyboard shortcuts

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