Go to file
Jeff Carr 9349ab95fc small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
example small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
small small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
.gitignore example is working okay 2025-01-09 20:08:22 -06:00
LICENSE add example. and forgot the GPL! 2024-12-31 13:24:00 -06:00
Makefile small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
README add example. and forgot the GPL! 2024-12-31 13:24:00 -06:00
addMutex.go small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
argv.go trying to get Mutex back to a working state 2025-01-11 01:30:08 -06:00
control add control file 2024-12-18 03:02:44 -06:00
file.proto make seperate find and sort files 2025-01-10 11:22:08 -06:00
header.go iterator top done? 2025-01-09 06:47:35 -06:00
human.go correctly identify the two primary structs 2025-01-10 19:37:32 -06:00
main.go close to being able to remove the old functions 2025-01-10 22:27:38 -06:00
marshal.go do marshal for Bases and Base messages 2025-01-10 19:59:01 -06:00
protoParse.go correctly identify the two primary structs 2025-01-10 19:37:32 -06:00
protoc.go correctly identify the two primary structs 2025-01-10 19:37:32 -06:00
sort.go small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
sortFunc.go small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
sortNew.go small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00

README

This app will autogenerate protobuf Sort() and Marshal() functions

It was designed to work on .proto files designed with a standard
way that utilizes this method:

apple.proto should have

message Apples {
	string uuid
	string version
	repeaded Apple Apples
}

message Apple {
	<whatever you want here>
}

This "scheme" as it were will be familar to others as a common way to pluralize data formats.
In general, this is turning out to be a good way to handle protocol buffers for me so far.

There are several things that can be put in the protobuf file to trigger what files are made.

See the examples for how to do this.