Initial 2024-01-26
This commit is contained in:
34
plug/CmpPlug1/CmpPlug1.go
Normal file
34
plug/CmpPlug1/CmpPlug1.go
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
// "net/html"
|
||||
)
|
||||
|
||||
type CmpPlug struct {
|
||||
Log func(any, ...interface{})
|
||||
}
|
||||
|
||||
var plg CmpPlug
|
||||
|
||||
func CmpPlug1Init(in int, f func(any, ...interface{}), ifc map[string]interface{} ) interface{} {
|
||||
plg.Log = f
|
||||
|
||||
ifc["Ccc"] = "Ddd"
|
||||
|
||||
fmt.Printf("This is CmpPlug1: %d\n", in)
|
||||
|
||||
return ifc
|
||||
}
|
||||
|
||||
func CmpPlug1Some() error {
|
||||
plg.Log("This is CmpPlug1Some")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Print(23)
|
||||
}
|
Reference in New Issue
Block a user