Summarizes the common knowledge points and concepts of Helm 3. Part of the content in the document comes from major blogs and official documents, and some content has been reorganized based on my own understanding and practice. All concept explanations will be equipped with practical codes. The article is updated from time to time, welcome to follow and subscribe (a paid column is opened, otherwise it will be crawled away by other private websites. Please be considerate of the big brothers and sisters, it is just a lunch, and please support it).
Link to the original text of this column: https://blog.csdn.net/xzk9381/category_10895812.html, please indicate the source for reprinting
Type conversion function
Helm provides the following type conversion functions:
atoi
: Convert a string to an integerfloat64
: Convert to float64 typeint
: Convert to int typeint64
: Converted to int64 typetoDecimal
: Convert unix octal to int64toString
: Convert to stringtoStrings
: Convert a list, slice or array into a list of stringstoJson
(mustToJson
): Convert a list, slice, array, dictionary or object into JSONtoPrettyJson
(mustToPrettyJson
): Convert a list, slice, array, dictionary or object into formatted JSON