Skip to content

fix: #1538 add hasPrefix and hasSuffix template funcs - #1539

Closed
maks56893 wants to merge 0 commit into
oapi-codegen:mainfrom
maks56893:master
Closed

maks56893 wants to merge 0 commit into
oapi-codegen:mainfrom
maks56893:master

Conversation

@maks56893

Copy link
Copy Markdown

No description provided.

@maks56893 maks56893 changed the title add hasPrefix and hasSuffix template funcs fix: #1539 add hasPrefix and hasSuffix template funcs Apr 12, 2024
@maks56893 maks56893 changed the title fix: #1539 add hasPrefix and hasSuffix template funcs fix: #1538 add hasPrefix and hasSuffix template funcs Apr 12, 2024
@deefdragon

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants