Skip to content

Commit 6be79c8

Browse files
Sah, NandeshwarSah, Nandeshwar
authored andcommitted
Auto generate code has new function - PMapIO<TYPE>PtrErr for error handling
1 parent 8610f1d commit 6be79c8

File tree

4 files changed

+2135
-7
lines changed

4 files changed

+2135
-7
lines changed

gofp/gofp.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,16 @@ func generateFPCodeIO(pkg, dataTypes string) (string, error) {
613613
template = r.Replace(template)
614614
}
615615

616+
if fp.ExistsStrIgnoreCase("PMapIOPtr", onlyList) {
617+
template += basic.PMapIOPtr()
618+
template = r.Replace(template)
619+
}
620+
621+
if fp.ExistsStrIgnoreCase("PMapIOPtrErr", onlyList) {
622+
template += basic.PMapIOPtrErr()
623+
template = r.Replace(template)
624+
}
625+
616626
if fp.ExistsStrIgnoreCase("FilterMapIO", onlyList) {
617627
template += basic.FilterMapIO()
618628
template = r.Replace(template)
@@ -646,6 +656,12 @@ func generateFPCodeIO(pkg, dataTypes string) (string, error) {
646656
template += basic.PMapIOErr()
647657
template = r.Replace(template)
648658

659+
template += basic.PMapIOPtr()
660+
template = r.Replace(template)
661+
662+
template += basic.PMapIOPtrErr()
663+
template = r.Replace(template)
664+
649665
template += basic.FilterMapIO()
650666
template = r.Replace(template)
651667

0 commit comments

Comments
 (0)