github.com/gaukas/wazerofs@v0.1.0/sysfs/sysfs.go (about)

     1  // sysfs is a almost verbatim copy of internal package sysfs from wazero.
     2  // As it's internal, it cannot be used outside of wazero; however, it's useful to be
     3  // able to create AdaptFS and SysFS and instrument them and experiment on them further.
     4  //
     5  // Do NOT use it in prod code, because it is not being kept up-to-date with wazero;
     6  // use it only for experimenting/debugging.
     7  //
     8  // Network and polling was removed, as it was dependent on other internal packages.
     9  // As was all testing.
    10  //
    11  // path.go is copied over from internal platform package.
    12  //
    13  // Original wazero docs:
    14  //
    15  // Package sysfs includes a low-level filesystem interface and utilities needed
    16  // for WebAssembly host functions (ABI) such as WASI and runtime.GOOS=js.
    17  //
    18  // The name sysfs was chosen because wazero's public API has a "sys" package,
    19  // which was named after https://github.com/golang/sys.
    20  package sysfs