mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
20 lines
294 B
Go
20 lines
294 B
Go
package openapi
|
|
|
|
import (
|
|
"github.com/eolinker/go-common/autowire"
|
|
"github.com/eolinker/go-common/pm3"
|
|
)
|
|
|
|
func init() {
|
|
pm3.Register("openapi", new(Driver))
|
|
}
|
|
|
|
type Driver struct {
|
|
}
|
|
|
|
func (d *Driver) Create() (pm3.IPlugin, error) {
|
|
p := new(plugin)
|
|
autowire.Autowired(p)
|
|
return p, nil
|
|
}
|