GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — feat: add hasPrefix and hasSuffix template functions by yakovlef · Pull Request #2659 · oapi-codegen/oapi-codegen ConversationCloses #1538 Adds hasPrefix and hasSuffix (strings.HasPrefix / strings.HasSuffix) to TemplateFunctions, so custom templates can check type names, eg Old PR for this (deepmap#1539) was closed without merge, so picked it up again. Added a small test that runs both funcs through a template.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
[Low impact] This PR appears safe to merge. SummaryAdds
Reviews (1) · Last reviewed commit: "feat: add hasPrefix and hasSuffix templa..." · Reviewed by Greptile |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add hasPrefix and hasSuffix template funcs
There was an error while loading. Please reload this page.