convert consts into golang native type