bytestostr_nounsafe.go raw

   1  // This file is included to the build if any of the buildtags below
   2  // are defined. Refer to README notes for more details.
   3  
   4  //+build easyjson_nounsafe appengine
   5  
   6  package jlexer
   7  
   8  // bytesToStr creates a string normally from []byte
   9  //
  10  // Note that this method is roughly 1.5x slower than using the 'unsafe' method.
  11  func bytesToStr(data []byte) string {
  12  	return string(data)
  13  }
  14