wp-go/app/plugins/wphandle/apply/apply.go

14 lines
161 B
Go
Raw Permalink Normal View History

2023-05-08 13:43:20 +00:00
package apply
2023-05-08 14:24:39 +00:00
import "github.com/fthvgb1/wp-go/safety"
var fn safety.Var[any]
2023-05-08 13:43:20 +00:00
func SetFn(f any) {
2023-05-08 14:24:39 +00:00
fn.Store(f)
2023-05-08 13:43:20 +00:00
}
func UsePlugins() any {
2023-05-08 14:24:39 +00:00
return fn.Load()
2023-05-08 13:43:20 +00:00
}