goreadme

package
v0.0.0-...-5c01dc0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: BSD-3-Clause Imports: 10 Imported by: 10

README

goreadme

import "github.com/WillAbides/godoc2md/goreadme"

Overview

Index

Package files

goreadme.go

func CheckReadmes

func CheckReadmes(basePath, readmeName string, excludeDirs []string) (bool, []string, error)

CheckReadmes checks that the readmes in basePath are up to date the first return value is a boolean indicating whether all readmes are up to date (false if any are outdated) the second return is the list of outdated readmes found

func FindReadmes

func FindReadmes(basePath, readmeName string, excludeDirs []string) (map[string]string, error)

FindReadmes finds all goreadme generated README.md files in basePath and child directories

returns a map of filepath:package

func ReadmeMD

func ReadmeMD(pkgName string, writer io.Writer) error

ReadmeMD writes readme content for the given package to writer

func VerifyReadme

func VerifyReadme(pkgName, readmePath string) (bool, error)

VerifyReadme checks that the file at readmePath has the correct content for pkgName

func WriteReadme

func WriteReadme(pkgName, readmePath string) (err error)

WriteReadme writes a README.md for pkgname to the given path

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckReadmes

func CheckReadmes(basePath, readmeName string, excludeDirs []string) (bool, []string, error)

CheckReadmes checks that the readmes in basePath are up to date the first return value is a boolean indicating whether all readmes are up to date (false if any are outdated) the second return is the list of outdated readmes found

func FindReadmes

func FindReadmes(basePath, readmeName string, excludeDirs []string) (map[string]string, error)

FindReadmes finds all goreadme generated README.md files in basePath and child directories

returns a map of filepath:package

func ReadmeMD

func ReadmeMD(pkgName string, writer io.Writer) error

ReadmeMD writes readme content for the given package to writer

func VerifyReadme

func VerifyReadme(pkgName, readmePath string) (bool, error)

VerifyReadme checks that the file at readmePath has the correct content for pkgName

func WriteReadme

func WriteReadme(pkgName, readmePath string) (err error)

WriteReadme writes a README.md for pkgname to the given path

Types

This section is empty.

Jump to

Keyboard shortcuts

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