Re: [go-nuts] extract Last 2 characters in go template

2021-05-30 Thread Marvin Renich
* Pawan Kumar [210530 08:03]: > Many thanks Marvin , really appreciate it. I intended, but forgot, to hint that your FuncMap could include a function that was more specific to your problem than the sub function. ...Marvin -- You received this message because you are subscribed to the Google Gr

Re: [go-nuts] extract Last 2 characters in go template

2021-05-30 Thread Pawan Kumar
Many thanks Marvin , really appreciate it. Regards On Sat, 29 May 2021, 00:21 Marvin Renich, wrote: > * Pawan Kumar [210528 12:43]: > > 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 funct

Re: [go-nuts] extract Last 2 characters in go template

2021-05-28 Thread Marvin Renich
* Pawan Kumar [210528 12:43]: > 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 na

[go-nuts] extract Last 2 characters in go template

2021-05-28 Thread Pawan Kumar
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_n