Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 465 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 465 Bytes

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