gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

util_safe.go (309B)


      1 // +build appengine js
      2 
      3 package util
      4 
      5 // BytesToReadOnlyString returns a string converted from given bytes.
      6 func BytesToReadOnlyString(b []byte) string {
      7 	return string(b)
      8 }
      9 
     10 // StringToReadOnlyBytes returns bytes converted from given string.
     11 func StringToReadOnlyBytes(s string) []byte {
     12 	return []byte(s)
     13 }