displayVariablesAndTypes method in Go.