mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-30 12:58:16 +03:00
fd8a724e77
* bump go swagger version * bump swagger version
8 lines
206 B
Go
8 lines
206 B
Go
package swag
|
|
|
|
import "unsafe"
|
|
|
|
// hackStringBytes returns the (unsafe) underlying bytes slice of a string.
|
|
func hackStringBytes(str string) []byte {
|
|
return unsafe.Slice(unsafe.StringData(str), len(str))
|
|
}
|