<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>String on Ricky</title><link>https://linzeyan.github.io/categories/string/</link><description>Recent content in String on Ricky</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Tue, 20 Aug 2024 08:55:00 +0800</lastBuildDate><atom:link href="https://linzeyan.github.io/categories/string/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Articles</title><link>https://linzeyan.github.io/posts/2024/20240820-golang/</link><pubDate>Tue, 20 Aug 2024 08:55:00 +0800</pubDate><guid>https://linzeyan.github.io/posts/2024/20240820-golang/</guid><description>&lt;ul>
&lt;li>&lt;a href="https://juejin.cn/post/6863765115456454664" target="_blank" rel="noopener">Learn gin Parameter Validation with the validator Library - This One Article Is Enough&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="string-constraints">String Constraints&lt;/h3>
&lt;p>excludesall: does not contain any of the UNICODE characters in the parameter, e.g. excludesall=ab&lt;/p>
&lt;p>excludesrune: does not contain the rune specified by the parameter, e.g. excludesrune=asong&lt;/p>
&lt;p>startswith: starts with the parameter substring, e.g. startswith=hi&lt;/p>
&lt;p>endswith: ends with the parameter substring, e.g. endswith=bye&lt;/p>
&lt;p>contains: contains the parameter substring, e.g. contains=email&lt;/p>
&lt;p>containsany: contains any of the UNICODE characters in the parameter, e.g. containsany=ab&lt;/p></description></item></channel></rss>