Skip to content

kutogroup/goprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

goprint

GoLang Print API You can print any variables (string, struct, slice, map, ptr and more)

Example:

package main

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

type TestStruct1 struct {
	Id    int32
	Value string
}

type TestStruct struct {
	Id    int32
	Value string
	St    TestStruct1
}

func main() {
	test := TestStruct{1, "hello struct", TestStruct1{2, "hello struct2"}}
	goprint.P("test tag", test)
}

About

print format struct, slice,map,anyvar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages