mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 04:32:26 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			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))
 | 
						|
}
 |