From 0cbb12f0bbaeb3893b3d011fdb1a270291747ab0 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Fri, 26 Aug 2016 08:50:50 -0400 Subject: 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/plugin/plugin_stubs.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/plugin/plugin_stubs.go (limited to 'src/plugin/plugin_stubs.go') 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") +} -- cgit v1.3-5-g9baa