![]() ![]() These are then separated by || (OR)Ĭomparisons. Of space or comma separated AND comparisons. There are two elements to the comparisons. Match, and that the patch number of the second version is greater than or semverCompare "~1.2.0" "1.2.3" checks that the major and minor versions.semverCompare "1.2.3" "1.2.3" checks for an exact match.(Note that in SemVer, the Metadata field is not compared during versionĪ more robust comparison function is provided as semverCompare. 1 if the version who's Compare function was called is greater.-1 if the given semver is greater than the semver whose Compare method was.append, mustAppendĪppend a new item to an existing list, creating a new list. The template engine if there is a problem. Initial panics if there is a problem, while mustInitial returns an error to This compliments last by returning all but the last element. This is roughly analogous to reversing a list and To get the last item on a list, use last: Rest panics if there is a problem, while mustRest returns an error to the To get the tail of the list (everything but the first item), use rest. To get the head item on a list, use first.įirst panics if there is a problem, while mustFirst returns an error to the Helm provides the following list functions: Given a list-like collection, produce a slice of strings. ![]() For example, int64 canĬonvert floats to ints, and it can also convert strings to ints. To convert from any type to the destination type. Only atoi requires that the input be a specific type. This function is equivalent to GoLang yaml.Marshal function, see docs here:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |