Skip to content

marshal struct input text, or parse text to struct in golang

License

Notifications You must be signed in to change notification settings

davyxu/goobjfmt

Repository files navigation

goobjfmt

Marshal struct input text format( protobuf text )

like key : value

key has no ""

string value should have ""

Example

	input := &MyData{
		Name:   "genji",
		Type:   MyCar_Pig,
		Uint32: math.MaxUint32,
		Int64:  math.MaxInt64,
		Uint64: math.MaxUint64,
	}

	t.Log(MarshalTextString(input))

Feedback

Star me if you like or use, thanks

知乎: http://www.zhihu.com/people/sunicdavy

About

marshal struct input text, or parse text to struct in golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages