I am using go programming
I have structs like this:
type person struct {
firstname string
lastname string
age int
address string
}
I want it to be aligned like this
type person struct {
firstname string
lastname string
age int
address string
}
and stuff like
const (
constant1 int = 1
c2 int = 2
const3 int = 3
)
to
const (
constant1 int = 1
c2 int = 2
const3 int = 3
)
I know align-regexp should help here, but i am unable to figure it out.