MCPcopy Create free account
hub / github.com/go-task/task / normalizePathSeparators

Function normalizePathSeparators

task_test.go:326–328  ·  view source on GitHub ↗

normalizePathSeparators converts backslashes to forward slashes for cross-platform path comparison.

(s string)

Source from the content-addressed store, hash-verified

324
325// normalizePathSeparators converts backslashes to forward slashes for cross-platform path comparison.
326func normalizePathSeparators(s string) string {
327 return strings.ReplaceAll(s, "\\", "/")
328}
329
330// NormalizedEqual compares two byte slices after normalizing output.
331// This is used as a custom goldie.EqualFn for cross-platform golden file tests.

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…