mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 21:55:27 +00:00
* use parsed options while signing * update project layout to v3 * fix .gitignore * remove example template * misc updates * bump tlsx version * hide template sig warning with env * js: retain value while using log * fix nil pointer derefernce * misc doc update --------- Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
9 lines
187 B
Go
9 lines
187 B
Go
package tostring
|
|
|
|
import "unsafe"
|
|
|
|
// UnsafeToString converts byte slice to string with zero allocations
|
|
func UnsafeToString(bs []byte) string {
|
|
return *(*string)(unsafe.Pointer(&bs))
|
|
}
|