Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
fb618a28
Unverified
Commit
fb618a28
authored
Jul 14, 2017
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin: fix typos
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
6da6e775
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
plugin/loader/initializer.go
plugin/loader/initializer.go
+1
-1
plugin/loader/load.go
plugin/loader/load.go
+2
-2
plugin/loader/load_linux.go
plugin/loader/load_linux.go
+2
-2
No files found.
plugin/loader/initializer.go
View file @
fb618a28
...
...
@@ -7,7 +7,7 @@ import (
format
"gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
)
func
initalize
(
plugins
[]
plugin
.
Plugin
)
error
{
func
init
i
alize
(
plugins
[]
plugin
.
Plugin
)
error
{
for
_
,
p
:=
range
plugins
{
err
:=
p
.
Init
()
if
err
!=
nil
{
...
...
plugin/loader/load.go
View file @
fb618a28
...
...
@@ -15,7 +15,7 @@ var loadPluginsFunc = func(string) ([]plugin.Plugin, error) {
return
nil
,
nil
}
// LoadPlugins loads and initalizes plugins.
// LoadPlugins loads and init
i
alizes plugins.
func
LoadPlugins
(
pluginDir
string
)
([]
plugin
.
Plugin
,
error
)
{
plMap
:=
make
(
map
[
string
]
plugin
.
Plugin
)
for
_
,
v
:=
range
preloadPlugins
{
...
...
@@ -43,7 +43,7 @@ func LoadPlugins(pluginDir string) ([]plugin.Plugin, error) {
pls
=
append
(
pls
,
v
)
}
err
=
initalize
(
pls
)
err
=
init
i
alize
(
pls
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
plugin/loader/load_linux.go
View file @
fb618a28
...
...
@@ -11,10 +11,10 @@ import (
)
func
init
()
{
loadPluginsFunc
=
lin
x
uLoadFunc
loadPluginsFunc
=
linu
x
LoadFunc
}
func
lin
x
uLoadFunc
(
pluginDir
string
)
([]
iplugin
.
Plugin
,
error
)
{
func
linu
x
LoadFunc
(
pluginDir
string
)
([]
iplugin
.
Plugin
,
error
)
{
var
plugins
[]
iplugin
.
Plugin
err
:=
filepath
.
Walk
(
pluginDir
,
func
(
fi
string
,
info
os
.
FileInfo
,
err
error
)
error
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment