oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

fix: #1538 add hasPrefix and hasSuffix template funcs

Open maks56893 opened this issue 1 year ago • 1 comments

maks56893 avatar Apr 12 '24 12:04 maks56893

As a side note, these differ from the sprig template functions (see #1536 where sprig is discussed) in parameter ordering. I believe this is to allow pipe-lining easier in the templates. In sticking with sprig ordering, vs making the template functions added better match their golang counterparts, I think I lean slightly towards the latter.

deefdragon avatar Apr 29 '24 03:04 deefdragon