mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 20:02:27 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			336 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			336 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build appengine || js
 | 
						|
// +build appengine js
 | 
						|
 | 
						|
package util
 | 
						|
 | 
						|
// BytesToReadOnlyString returns a string converted from given bytes.
 | 
						|
func BytesToReadOnlyString(b []byte) string {
 | 
						|
	return string(b)
 | 
						|
}
 | 
						|
 | 
						|
// StringToReadOnlyBytes returns bytes converted from given string.
 | 
						|
func StringToReadOnlyBytes(s string) []byte {
 | 
						|
	return []byte(s)
 | 
						|
}
 |