StringsLocale configures the library with the given locale. The locale tag will be checked for validity at the time that EnvOptions are configured. If this option is not passed, string.format will behave as if en_US was passed as the locale. If StringsVersion is greater than or equal to 4, this opt
(locale string)
| 345 | // |
| 346 | // If StringsVersion is greater than or equal to 4, this option is ignored. |
| 347 | func StringsLocale(locale string) StringsOption { |
| 348 | return func(sl *stringLib) *stringLib { |
| 349 | sl.locale = locale |
| 350 | return sl |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | // StringsVersion configures the version of the string library. |
| 355 | // |
no outgoing calls