Hi Team, I was using slice function to extract last 2 characters in go template but not able to do ,as -ve range is not supported by slice function .
For example - My cluster name is turbo-ab-03 , i can extract if i know exact length of cluster name. {{ slice (index .ServiceMeta "cluster_name") 9 11}} Results - 03 But it fails , if i use negative range ( Want to extract last 2 characters) {{ slice (index .ServiceMeta "cluster_name") -1 2}} kindly help. thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6648ad00-36c3-4893-8ced-af8dc65751f7n%40googlegroups.com.