pkg

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 16 Imported by: 0

README

github.com/jylitalo/go2md/pkg

Overview

Package pkg provides the backend functionality for golang to markdown transformation.

Imports: 16

Index

Examples

This section is empty.

Constants

This section is empty.

Variables

var Markdown string // value from template.md file

Markdown is golang template for go2md output

Functions

func Output
func Output(out io.Writer, directory, filename string) (io.Writer, func() error, error)

Output creates output file if needed and returns writer to it

func Run
func Run(out io.Writer, directory, version string) error

Run reads all ".go" files (excluding "_test.go") and writes markdown document out of it.

func RunDirTree
func RunDirTree(out io.Writer, directory, output, version string) error

RunDirTree checks given directory and its subdirectories for golang

--

Generated by github.com/jylitalo/go2md v0.4.1

Documentation

Overview

Package pkg provides the backend functionality for golang to markdown transformation.

Index

Constants

This section is empty.

Variables

View Source
var Markdown string // value from template.md file

Markdown is golang template for go2md output

Functions

func Output

func Output(out io.Writer, directory, filename string) (io.Writer, func() error, error)

Output creates output file if needed and returns writer to it

func Run

func Run(out io.Writer, directory, version string) error

Run reads all "*.go" files (excluding "*_test.go") and writes markdown document out of it.

func RunDirTree

func RunDirTree(out io.Writer, directory, output, version string) error

RunDirTree checks given directory and its subdirectories for golang

Types

This section is empty.

Jump to

Keyboard shortcuts

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