file

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 7 Imported by: 0

README

Examples

  1. The following path will use the current working directory where the app is running

file:// or file://.

  1. Use the following path style to use the File database with a relative path from the working directory

file://./projects/example

  1. Use an absolute path with the following

file:///tmp/a_directory/sub_dir

Documentation

Index

Constants

View Source
const (
	CanExecute = true
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func (File) Close

func (f File) Close() error

Closes the file system if possible.

func (File) Get

func (f File) Get(key string) (string, error)

func (File) Open

func (f File) Open(url, subDir string) (database.Database, error)

func (File) Path

func (f File) Path() string

func (File) Set

func (f File) Set(key, val string) error

Jump to

Keyboard shortcuts

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