Discover Packages
rsc.io/tmp/unsafeconv
command
module
Version:
v0.0.0-...-804b483
Opens a new window with list of versions in this module.
Published: Dec 18, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
$ go build
$ ./unsafeconv std \
github.com/boltdb/bolt... \
github.com/google/gopacket... \
golang.org/x/net... \
golang.org/x/sys... \
golang.org/x/tools... >output.txt
$ awk '$2~/convert/ {print $2, $NF}' output.txt | sort | uniq -c
4 array-convert addr-of-index-of-non-slice
33 array-convert addr-of-non-index
58 array-convert non-addr-of
8 array-convert valid
25 slice-convert slice-elem-mismatch
10 slice-convert valid
Expand ▾
Collapse ▴
Documentation
¶
Unsafeconv finds unsafe conversions that might be made better
with the proposals for unsafe.Slice and (*[10]int)(x[:]).
It also finds those that won't fit the mold.
Usage:
unsafeconv pkgs...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.