Initial commit (code only without large binaries)
This commit is contained in:
27
EdgeNode/internal/js/lib_base.go
Normal file
27
EdgeNode/internal/js/lib_base.go
Normal file
@@ -0,0 +1,27 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
//go:build script
|
||||
|
||||
package js
|
||||
|
||||
type JSBaseLibrary struct {
|
||||
}
|
||||
|
||||
func (this *JSBaseLibrary) JSInit(ctx *Context) {
|
||||
|
||||
}
|
||||
|
||||
func (this *JSBaseLibrary) JSDone(ctx *Context) {
|
||||
|
||||
}
|
||||
|
||||
func (this *JSBaseLibrary) JSDispose(ctx *Context) {
|
||||
|
||||
}
|
||||
|
||||
func (this *JSBaseLibrary) JSGoObjectNotFound() (any, error) {
|
||||
return nil, ErrGoObjectNotFound
|
||||
}
|
||||
|
||||
func (this *JSBaseLibrary) JSSuccess() (any, error) {
|
||||
return nil, nil
|
||||
}
|
||||
Reference in New Issue
Block a user