How can I write OS specific code in net core? Like golangs <pkgname>_<osname>.go
files.
I tried to solve this problem with RuntimeInformation.IsOSPlatform
and if/else
blocks, but I don't like it.
How can I write OS specific code in net core? Like golangs <pkgname>_<osname>.go
files.
I tried to solve this problem with RuntimeInformation.IsOSPlatform
and if/else
blocks, but I don't like it.