aboutsummaryrefslogtreecommitdiff
path: root/src/plugin/plugin_stubs.go
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2016-08-26 08:50:50 -0400
committerDavid Crawshaw <crawshaw@golang.org>2016-09-16 17:54:40 +0000
commit0cbb12f0bbaeb3893b3d011fdb1a270291747ab0 (patch)
tree27aad9e8d195e1bc06a2f93b14cdec6839474d62 /src/plugin/plugin_stubs.go
parentc87528d7761e3f133fe238937019a18bf7cf0d3c (diff)
downloadgo-0cbb12f0bbaeb3893b3d011fdb1a270291747ab0.tar.xz
plugin: new package for loading plugins
Includes a linux implementation. Change-Id: Iacc2ed7da760ae9deebc928adf2b334b043b07ec Reviewed-on: https://go-review.googlesource.com/27823 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/plugin/plugin_stubs.go')
-rw-r--r--src/plugin/plugin_stubs.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugin/plugin_stubs.go b/src/plugin/plugin_stubs.go
new file mode 100644
index 0000000000..1b935bffa9
--- /dev/null
+++ b/src/plugin/plugin_stubs.go
@@ -0,0 +1,17 @@
+// Copyright 2016 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !linux !cgo
+
+package plugin
+
+import "errors"
+
+func lookup(p *Plugin, symName string) (interface{}, error) {
+ return nil, errors.New("plugin: not implemented")
+}
+
+func open(name string) (*Plugin, error) {
+ return nil, errors.New("plugin: not implemented")
+}