wp-go/internal/theme/wp/components/widget/fn.go
2023-03-28 21:45:20 +08:00

10 lines
212 B
Go

package widget
import "github.com/fthvgb1/wp-go/internal/theme/wp"
func Fn(id string, fn func(*wp.Handle, string) string) func(h *wp.Handle) string {
return func(h *wp.Handle) string {
return fn(h, id)
}
}