pathorcontents

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

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

Read 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