feat: implement date segment type for part number generation #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ref:
docs/ROADMAP.md§ Appendix B / 1.5 Missing Segment TypesThe schema parser accepts
type: "date"segments but the generator returns an error:Tasks:
resolveSegment()with strftime-style format supportYYYYMMDD,YYYY-MM-DD,YY,YYMM, etc.formatfield from the schema YAML to control output formatinternal/partnum/generator_test.gofor date segmentsFiles:
internal/partnum/generator.go— implement the"date"caseinternal/schema/schema.go— verify date type validation accepts format fieldinternal/partnum/generator_test.go— add test cases