MCPcopy Create free account
hub / github.com/devspace-sh/devspace / Bytes

Function Bytes

pkg/devspace/services/proxycommands/rewrite.go:43–45  ·  view source on GitHub ↗

Bytes returns a transformer that replaces all instances of old with new. Unlike bytes.Replace, empty old values don't match anything.

(old, new []byte)

Source from the content-addressed store, hash-verified

41// Bytes returns a transformer that replaces all instances of old with new.
42// Unlike bytes.Replace, empty old values don't match anything.
43func Bytes(old, new []byte) Transformer {
44 return Transformer{old: old, new: new, oldlen: len(old)}
45}
46
47// String returns a transformer that replaces all instances of old with new.
48// Unlike strings.Replace, empty old values don't match anything.

Callers 1

StringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected