linkfile

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RefLinkHiddenFilename = ".qri-ref"

RefLinkHiddenFilename is the filename for a hidden reference linkfile

View Source
const RefLinkTextFilename = "qri-ref.txt"

RefLinkTextFilename is the filename for a reference linkfile

Variables

This section is empty.

Functions

func ExistsInDir

func ExistsInDir(dir string) bool

ExistsInDir returns whether a linkfile exists in the directory

func Read

func Read(filename string) (dsref.Ref, error)

Read reads a reference from a linkfile with the given filename

func WriteHiddenInDir

func WriteHiddenInDir(dir string, ref dsref.Ref) (string, error)

WriteHiddenInDir writes a reference to a hidden linkfile in the given directory

func WriteRef

func WriteRef(w io.Writer, ref dsref.Ref)

WriteRef writes a reference to the given io.Writer

func WriteTextInDir

func WriteTextInDir(dir string, ref dsref.Ref) (string, error)

WriteTextInDir writes a reference to a visible linkfile in the given directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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