Skip to content

Commit 3ac26cb

Browse files
committed
Regenerate pb<->db example
1 parent 6f5f53e commit 3ac26cb

File tree

3 files changed

+200
-5
lines changed

3 files changed

+200
-5
lines changed

example/convgen_gen.go

Lines changed: 199 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var mod = convgen.Module(
2424

2525
var (
2626
PBtoDB = convgen.Struct[*pb.Job, db.Job](mod)
27-
PBtoDB_status = convgen.Enum[pb.Status, db.JobStatus](mod, db.JobStatusTodo, convgen.MatchSkip(pb.Status_STATUS_UNSPECIFIED, convgen.Missing))
27+
PBtoDB_status = convgen.Enum[pb.Status, db.JobStatus](mod, db.JobStatusTodo, convgen.MatchSkip(pb.Status_STATUS_UNSPECIFIED, nil))
2828
DBtoPB = convgen.Struct[db.Job, *pb.Job](mod)
2929
DBtoPB_status = convgen.Enum[db.JobStatus, pb.Status](mod, pb.Status_STATUS_UNSPECIFIED)
3030
)

example/want/program_output.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)