Documentation
¶
Overview ¶
Package danger provides memory unsafe utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶ added in v0.20.2
Bytes casts a string to a byte slice without copying the underlying array.
The caller must not modify s afterwards because this will change the returned slice.
func MarshalJSON ¶
MarshalJSON encodes a value to a JSON string.
It uses String to avoid memory allocation and copying.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.