Skip to content

Commit 3307db5

Browse files
Merge pull request #102 from logic-building/MapIO<TYPE>PtrErr
Added functionality to support error handling for MapIO<TYPE>PtrErr
2 parents fab5e67 + 45fc3bc commit 3307db5

File tree

9 files changed

+10086
-0
lines changed

9 files changed

+10086
-0
lines changed

fp/mapioptrerr.go

Lines changed: 3095 additions & 0 deletions
Large diffs are not rendered by default.

fp/mapioptrerr_test.go

Lines changed: 6274 additions & 0 deletions
Large diffs are not rendered by default.

gofp/gofp.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,10 @@ func generateFPCodeIO(pkg, dataTypes string) (string, error) {
598598
template += basic.MapIOPtr()
599599
template = r.Replace(template)
600600
}
601+
if fp.ExistsStrIgnoreCase("MapIOPtrErr", onlyList) {
602+
template += basic.MapIOPtrErr()
603+
template = r.Replace(template)
604+
}
601605

602606
if fp.ExistsStrIgnoreCase("PMapIO", onlyList) {
603607
template += basic.PMapIO()
@@ -628,6 +632,9 @@ func generateFPCodeIO(pkg, dataTypes string) (string, error) {
628632
template += basic.MapIOPtr()
629633
template = r.Replace(template)
630634

635+
template += basic.MapIOPtrErr()
636+
template = r.Replace(template)
637+
631638
template += basic.PMapIO()
632639
template = r.Replace(template)
633640

internal/employee/fp.go

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

0 commit comments

Comments
 (0)