Documentation
      ¶
    
    
  
    
  
    Index ¶
- func CopyBean(src interface{}, dest interface{}) error
 - func CopyBeanUseJson(src interface{}, dest interface{}) error
 - func LoadXmlConfig(path string, config interface{}) error
 - func LocalIPv4() string
 - func NewList(v ...interface{}) *list.List
 - func SafeCloseChan(ch chan struct{})
 - func ToJson(i interface{}) string
 - func ToString(err error) string
 - type PanicCond
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyBean ¶
func CopyBean(src interface{}, dest interface{}) error
    使用反射直接赋值的方式拷贝,不支持匿名字段,不支持类型转换。 TODO 完善该方法,可以参考 json 序列化,需要进行性能测试。
func CopyBeanUseJson ¶
func CopyBeanUseJson(src interface{}, dest interface{}) error
    使用 json 序列化框架进行拷贝,支持匿名字段,支持类型转换。
Types ¶
 Click to show internal directories. 
   Click to hide internal directories.