Skip to content

Commit 3fb571a

Browse files
Merge pull request #104 from logic-building/PMapIO<TYPE>Err-Autogenerate-code
Auto generated code has function - PMapIO<TYPE>Err which supports err…
2 parents 050532c + 0e46f9b commit 3fb571a

File tree

4 files changed

+1218
-0
lines changed

4 files changed

+1218
-0
lines changed

gofp/gofp.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,11 @@ func generateFPCodeIO(pkg, dataTypes string) (string, error) {
608608
template = r.Replace(template)
609609
}
610610

611+
if fp.ExistsStrIgnoreCase("PMapIOErr", onlyList) {
612+
template += basic.PMapIOErr()
613+
template = r.Replace(template)
614+
}
615+
611616
if fp.ExistsStrIgnoreCase("FilterMapIO", onlyList) {
612617
template += basic.FilterMapIO()
613618
template = r.Replace(template)
@@ -638,6 +643,9 @@ func generateFPCodeIO(pkg, dataTypes string) (string, error) {
638643
template += basic.PMapIO()
639644
template = r.Replace(template)
640645

646+
template += basic.PMapIOErr()
647+
template = r.Replace(template)
648+
641649
template += basic.FilterMapIO()
642650
template = r.Replace(template)
643651

0 commit comments

Comments
 (0)