getHardwareInterface returns nil values for the JS version of the code. This removes the "net" dependency, because it is not used in the browser. Using the "net" library inflates the size of the transpiled JS code by 673k bytes.
(name string)
| 10 | // This removes the "net" dependency, because it is not used in the browser. |
| 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. |
| 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } |