package
Version:
v0.0.0-...-b05aa3b
Opens a new window with list of versions in this module.
Published: Nov 3, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package factory implement a simple fatory design pattern
func Class(p interface{}) string
Class name of p, p is interface to pointer to object
New a object with creator
func Reflect(p interface{})
Reflect and register creator automatically, p is interface to pointer to object
Register creator for class
type Creator func() (interface{}, error)
Get the facreatory method for class
Source Files
¶
Click to show internal directories.
Click to hide internal directories.