zlacker

[parent] [thread] 1 comments
1. silver+(OP)[view] [source] 2025-08-22 14:26:34
> What if the file name is not valid UTF-8, though

They could support passing filename as `string | []byte`. But wait, go does not even have union types.

replies(1): >>lblume+12
2. lblume+12[view] [source] 2025-08-22 14:38:33
>>silver+(OP)
But []byte, or a wrapper like Path, is enough, if strings are easily convertible into it. Rust does it that way via the AsRef<T> trait.
[go to top]