I use vim+ctags to edit go code. I read the answer of ctag database for Go to configure my ctags, but it cann't recognise const variable definition, like this
const (
kMyServiceName = "serviceName"
kIpForAnyNetDevice = "0.0.0.0"
)
I try --regex-Go=/const[ \t]+\((\s+([a-zA-Z_][a-zA-Z0-9_]+)[ \t]*=\S+)+/\1/v,var/
but it doesn't work.
Does anyone can share your solution?