pkg/failpoint: add FreeBSD link and update pkg doc

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu 2022-06-24 00:08:26 +08:00
parent 3c5e80b63e
commit cbebeb9440

View File

@ -14,6 +14,10 @@
limitations under the License. limitations under the License.
*/ */
// Package failpoint provides the code point in the path, which can be controlled
// by user's variable.
//
// Inspired by FreeBSD fail(9): https://freebsd.org/cgi/man.cgi?query=fail.
package failpoint package failpoint
import ( import (
@ -80,7 +84,7 @@ func (t Type) String() string {
// be evaluated. If you want the error injected code should fire in second // be evaluated. If you want the error injected code should fire in second
// call, you can specify "1*off->1*error(oops)". // call, you can specify "1*off->1*error(oops)".
// //
// Based on fail(9) freebsd: https://www.freebsd.org/cgi/man.cgi?query=fail&sektion=9&apropos=0&manpath=FreeBSD%2B10.0-RELEASE // Inspired by FreeBSD fail(9): https://freebsd.org/cgi/man.cgi?query=fail.
type Failpoint struct { type Failpoint struct {
sync.Mutex sync.Mutex