fmt.Sprintf() might help here, it is getting a little complex to read.