Files
wazero/internal/platform/separator_windows.go
Takeshi Yoneda ebc2d97c2a wasi: implements link related system calls (#1057)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2023-02-01 12:06:44 +02:00

11 lines
191 B
Go

package platform
// SanitizeSeparator sanitizes the path separator in the given buffer.
func SanitizeSeparator(in []byte) {
for i := range in {
if in[i] == '\\' {
in[i] = '/'
}
}
}