fix README mentioning old HidePanics function

pull/54/head
Andrew LeFevre 5 years ago committed by Daniel Martí
parent b171463a47
commit 796f2b833e

@ -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