pathorcontents

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Helpers for dealing with file paths and their contents

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(poc string) (string, bool, error)

If the argument is a path, Read loads it and returns the contents, otherwise the argument is assumed to be the desired contents and is simply returned.

The boolean second return value can be called `wasPath` - it indicates if a path was detected and a file loaded.

Types

This section is empty.

Jump to

Keyboard shortcuts

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