os

package
v1.0.2-a Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package os contains pointers to os package functions so as to help in unit testing (mocking).

Index

Constants

This section is empty.

Variables

View Source
var (
	// OsOpenFile is a pointer to os.OpenFile
	OsOpenFile = os.OpenFile

	// OsRemove is a pointer to os.RemoveAll
	OsRemoveAll = os.RemoveAll

	// OsMkdirAll is a pointer to os.MkdirAll
	OsMkdirAll = os.MkdirAll
)

os package related functions.

View Source
var ExecCommand = exec.Command

ExecCommand a pointer to exec.Command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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