StringsVersion configures the version of the string library. The version limits which functions are available. Only functions introduced below or equal to the given version included in the library. If this option is not set, all functions are available. See the library documentation to determine w
(version uint32)
| 361 | // If the documentation does not state which version a function was introduced, it can |
| 362 | // be assumed to be introduced at version 0, when the library was first created. |
| 363 | func StringsVersion(version uint32) StringsOption { |
| 364 | return func(lib *stringLib) *stringLib { |
| 365 | lib.version = version |
| 366 | return lib |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | // StringsValidateFormatCalls validates type-checked ASTs to ensure that string.format() calls have |
| 371 | // valid formatting clauses and valid argument types for each clause. |
no outgoing calls