fix README mentioning old HidePanics function

pull/53/head
Andrew LeFevre 5 years ago
parent 7ede37cc0b
commit 8cd5a13585

@ -69,14 +69,14 @@ to document the current shortcomings of this tool.
### Runtime API ### Runtime API
The tool adds additional functions to the runtime that can optionally be used to The tool adds additional functions to the runtime that can optionally be used to
hide information during execution. The funcions added are: hide information during execution. The functions added are:
```go ```go
// HidePanics suppresses printing fatal panic messages when hide // hideFatalErrors suppresses printing fatal error messages and
// is true. This behavior can be changed at any time by calling // fatal panics when hide is true. This behavior can be changed at
// HidePanics again. All other behaviors of panics remains the // any time by calling hideFatalErrors again. All other behaviors of
// same. // panics remains the same.
func HidePanics(hide bool) func hideFatalErrors(hide bool)
``` ```
These functions must be used with the `linkname` compiler directive, like so: These functions must be used with the `linkname` compiler directive, like so:

Loading…
Cancel
Save