como usar função variável em go