diff options
| author | Roger Peppe <[email protected]> | 2018-01-29 09:57:49 +0000 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2018-02-03 01:28:59 -0600 |
| commit | 87df7c60d5820d0f8ae11afede5aa52325c09717 (patch) | |
| tree | cb1baccb5f0358afe3a3b92dd476e917e233f44c /example_test.go | |
| parent | db69d09d2c587e9b9677f991dfcab1fc24d9086e (diff) | |
simpler, more robust bypass
We make the bypass implementation a little simpler
by inferring the flag field position from available
reflect information and more robust by checking
that the flags that are set actually match the
semantics we expect.
We can restrict the use of unsafe to a single function: flagField.
Diffstat (limited to 'example_test.go')
0 files changed, 0 insertions, 0 deletions
