File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ func App(config *AppConfig) error { // creates the app and starts it
26
26
27
27
for _ , pl := range config .Plugins {
28
28
29
- err := pl .Init_plugin ()
29
+ err := pl .Init_plugin (config )
30
30
31
31
if err != nil {
32
32
misc .ShowError (err .Error ())
Original file line number Diff line number Diff line change 4
4
"os"
5
5
"strings"
6
6
7
+ alf "github.com/PiterWeb/Alf-Router"
7
8
"github.com/gzuidhof/tygo/tygo"
8
9
"golang.org/x/mod/modfile"
9
10
)
@@ -13,7 +14,7 @@ type TS_plugin struct {
13
14
OutputFolder string
14
15
}
15
16
16
- func (plugin TS_plugin ) Init_plugin () error {
17
+ func (plugin TS_plugin ) Init_plugin (_ * alf. AppConfig ) error {
17
18
18
19
cwd , err := os .Getwd ()
19
20
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ type AppConfig struct {
46
46
}
47
47
48
48
type Plugin interface {
49
- Init_plugin () error
49
+ Init_plugin (* AppConfig ) error
50
50
}
51
51
52
52
type routes struct {
You can’t perform that action at this time.
0 commit comments