diff options
author | Dan Willemsen <dwillemsen@google.com> | 2023-03-17 16:47:20 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2023-03-17 16:50:58 -0400 |
commit | aa46e669110f26a9c22af51acea37402f03add74 (patch) | |
tree | 2ae75ed7f1e6c7b5fa337797913fb3216cdd9ec1 /node_js.go | |
parent | a2d1171aad3609ee476766a714668db8a89c8325 (diff) | |
parent | 44b5fee7c49cf3bcdf723f106b36d56ef13ccc88 (diff) | |
download | google-uuid-main.tar.gz |
Change-Id: I97acfcec78d5cbe6ca6aedc81591e6adac431e6b
Diffstat (limited to 'node_js.go')
-rw-r--r-- | node_js.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_js.go b/node_js.go new file mode 100644 index 0000000..24b78ed --- /dev/null +++ b/node_js.go @@ -0,0 +1,12 @@ +// Copyright 2017 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build js + +package uuid + +// getHardwareInterface returns nil values for the JS version of the code. +// This remvoves 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. +func getHardwareInterface(name string) (string, []byte) { return "", nil } |