added godoc comments and license notes for the gocloud.dev vendored code

This commit is contained in:
Gani Georgiev committed 2025-03-08 01:10:13 +02:00
1 parent 087eaa7ea4
commit f799083c4f
7 files changed
+79 -18

No files matched your search

+5 -5
View File
@@ -1,5 +1,10 @@
package blob
import (
"fmt"
"strconv"
)
// Copied from gocloud.dev/blob to avoid nuances around the specific
// HEX escaping/unescaping rules.
//
@@ -19,11 +24,6 @@ package blob
// limitations under the License.
// -------------------------------------------------------------------
import (
"fmt"
"strconv"
)
// HexEscape returns s, with all runes for which shouldEscape returns true
// escaped to "__0xXXX__", where XXX is the hex representation of the rune
// value. For example, " " would escape to "__0x20__".