MCPcopy
hub / github.com/minio/minio-go / percentEncodeSlash

Function percentEncodeSlash

pkg/s3utils/utils.go:287–289  ·  view source on GitHub ↗

Expects ascii encoded strings - from output of urlEncodePath

(s string)

Source from the content-addressed store, hash-verified

285
286// Expects ascii encoded strings - from output of urlEncodePath
287func percentEncodeSlash(s string) string {
288 return strings.ReplaceAll(s, "/", "%2F")
289}
290
291// QueryEncode - encodes query values in their URL encoded form. In
292// addition to the percent encoding performed by urlEncodePath() used

Callers 2

TestPercentEncodeSlashFunction · 0.85
QueryEncodeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestPercentEncodeSlashFunction · 0.68