...

Source file src/github.com/launchdarkly/go-jsonstream/v3/jwriter/test_behavior_easyjson.go

Documentation: github.com/launchdarkly/go-jsonstream/v3/jwriter

     1  //go:build launchdarkly_easyjson
     2  // +build launchdarkly_easyjson
     3  
     4  package jwriter
     5  
     6  // This function tells the writer tests that we should expect to see hex escape sequences in the output
     7  // for certain characters, because that's the behavior of easyjson.
     8  func tokenWriterWillEncodeAsHex(ch rune) bool { //nolint:deadcode,unused // linter is confused
     9  	return ch != '\t' && ch != '\n' && ch != '\r'
    10  }
    11  

View as plain text