All Projects → davyxu → goobjfmt

davyxu / goobjfmt

Licence: MIT license
marshal struct input text, or parse text to struct in golang

Programming Languages

go
31211 projects - #10 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].