git

package
v0.0.0-...-b88123c Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path  string
	IsDir bool
}

type Repo

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

func InitRepo

func InitRepo(path string) (*Repo, error)

func OpenRepo

func OpenRepo(path string) (*Repo, error)

func (*Repo) Create

func (r *Repo) Create(path string) error

func (*Repo) Delete

func (r *Repo) Delete(path string) error

func (*Repo) ListFiles

func (r *Repo) ListFiles() ([]File, error)

func (*Repo) MkDir

func (r *Repo) MkDir(path string) error

func (*Repo) Read

func (r *Repo) Read(path string) (body string, err error)

func (*Repo) Write

func (r *Repo) Write(path, body string) error

Jump to

Keyboard shortcuts

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