以友好可读的方式,打印结构体

5年以前  |  阅读数:510 次  |  编程语言:Golang 

使用开源库github.com/MouseSun/goprint来完成

package common

import (
    "github.com/MouseSun/goprint"
)

//P is a quick function to print struct.
func P(title string, c interface{}) {
    goprint.P(title, c)
}

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8