Documentation
¶
Overview ¶
Package flagsaver provides a simple way to save and restore flag values. TODO(RJPercival): Move this to its own GitHub project.
Example:
func TestFoo(t *testing.T) {
defer flagsaver.Save().Restore()
// Test code that changes flags
} // flags are reset to their original values here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.