file

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTextBasedFiles

func FindTextBasedFiles(sourceDir string, includePatterns []string) []string

FindTextBasedFiles recursively finds all text-based files in the given directory and any of its subdirectories. Supported are the file extensions: - AsciiDoc: .adoc, .asciidoc and .asc - Markdown: .md, .markdown and .mdown - Plain text: .txt Returns a slice of found text-based files.

func ReadFile

func ReadFile(path string) string

ReadFile reads the contents of a given file.

Types

This section is empty.

Source Files

  • file.go

Jump to

Keyboard shortcuts

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