Go to file
Jeff Carr c4355fb69e maybe ready to test it on real stuff 2025-01-12 04:58:53 -06:00
example refactor again. I want to make this clean 2025-01-12 01:32:52 -06:00
small small app works, example core dumps on Marshal() 2025-01-11 02:44:21 -06:00
.gitignore lala. working again 2025-01-11 03:13:20 -06:00
LICENSE add example. and forgot the GPL! 2024-12-31 13:24:00 -06:00
Makefile refactor again. I want to make this clean 2025-01-12 01:32:52 -06:00
README add example. and forgot the GPL! 2024-12-31 13:24:00 -06:00
argv.go lala. working again 2025-01-11 03:13:20 -06:00
control add control file 2024-12-18 03:02:44 -06:00
file.proto refactor again. I want to make this clean 2025-01-12 01:32:52 -06:00
generate.go maybe ready to test it on real stuff 2025-01-12 04:58:53 -06:00
generateAppend.go almost have Delete() 2025-01-12 03:59:59 -06:00
generateFind.go good stuff. Find() seems to work 2025-01-12 04:40:12 -06:00
generateHeader.go minor 2025-01-11 06:07:48 -06:00
generateMarshal.go rename files 2025-01-11 04:03:41 -06:00
generateMutex.go working on LOCK 2025-01-11 04:27:45 -06:00
generateSort.go it compiled the test. sort seems to be working 2025-01-12 02:38:17 -06:00
human.go refactor again. I want to make this clean 2025-01-12 01:32:52 -06:00
main.go refactor again. I want to make this clean 2025-01-12 01:32:52 -06:00
protoParse.go refactor again. I want to make this clean 2025-01-12 01:32:52 -06:00
protoc.go correctly identify the two primary structs 2025-01-10 19:37:32 -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.