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