summaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
authorRoger Peppe <[email protected]>2018-01-29 09:57:49 +0000
committerDave Collins <[email protected]>2018-02-03 01:28:59 -0600
commit87df7c60d5820d0f8ae11afede5aa52325c09717 (patch)
treecb1baccb5f0358afe3a3b92dd476e917e233f44c /example_test.go
parentdb69d09d2c587e9b9677f991dfcab1fc24d9086e (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