load

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncLoad

func AsyncLoad(directories []string, add AsyncAdd, d chan bool) error

AsyncLoad asynchronously adds to AsyncAdd function

func SyncLoad

func SyncLoad(directories []string) (entities []*git.Repository, err error)

SyncLoad initializes the go-git's repository objects with given slice of paths. since this job is done parallel, the order of the directories is not kept

Types

type AsyncAdd

type AsyncAdd func(r *git.Repository)

AsyncAdd is interface to caller

Jump to

Keyboard shortcuts

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