Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for escapeStringJSON (0.27 sec)

  1. internal/kms/context.go

    	for i, k := range sortedKeys {
    		b.WriteByte('"')
    		escapeStringJSON(b, k)
    		b.WriteString(`":"`)
    		escapeStringJSON(b, c[k])
    		b.WriteByte('"')
    		if i < len(sortedKeys)-1 {
    			b.WriteByte(',')
    		}
    	}
    	b.WriteByte('}')
    	return b.Bytes(), nil
    }
    
    // Adapted from Go stdlib.
    
    var hexTable = "0123456789abcdef"
    
    // escapeStringJSON will escape a string for JSON and write it to dst.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Viewed (0)
Back to top