Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFatal ¶
CheckFatal raises a fatal error if error is not nil
func FormatDuration ¶
FormatDuration converts seconds into a duration string
func LeftPad2Len ¶
LeftPad2Len https://github.com/DaddyOh/golang-samples/blob/master/pad.go
func RightPad2Len ¶
RightPad2Len https://github.com/DaddyOh/golang-samples/blob/master/pad.go
func StringInSlice ¶
StringInSlice https://github.com/DaddyOh/golang-samples/blob/master/pad.go
Types ¶
type TestRepo ¶
type TestRepo struct {
// contains filtered or unexported fields
}
TestRepo represents a test git repo used in testing
func NewTestRepo ¶
NewTestRepo creates a new instance of TestRepo
func (TestRepo) Commit ¶
func (t TestRepo) Commit(treeID *git.Oid) *git.Oid
Commit commits staged files
func (TestRepo) PathIn ¶
PathIn returns full path of file within repo
func (TestRepo) Remove ¶
func (t TestRepo) Remove()
Remove deletes temp directories, files and git repo
func (TestRepo) SaveFile ¶
SaveFile creates a file within the git repo project
Source Files
¶
- sort.go
- string.go
- test.go
Click to show internal directories.
Click to hide internal directories.