Search code examples
goenvironment-variablesdriverpreloadld-preload

GOPRELOAD in windows to set process level environment variable?


Found the gopreload package. To what extent can this package be helpful in windows? Know that there is no such concept of preloading supported in windows. Just curious to know if I'll be able to at least set process-level environment variable for all new processes using this package though loading of .so file is obviously impossible in windows?


Solution

  • The gopreload is not useful on Windows at all, since it only builds on Linux.

    Plugins are currently supported only on Linux, FreeBSD, and macOS.