pathorcontents

package
Version: v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2015 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL