Extraction to global variable\const Permanently deleted user 创建于 2019年07月11日 19:28 Hi! Is there a way to extract an expression to global const or variable? For example: func main() { fmt.Println("test 123")} -> const testConst = "test 123"func main() { fmt.Println(testConst)}
Hi,
It's not possible right now. Please vote for the issue to show the interest and get updates on it.
https://youtrack.jetbrains.com/issue/GO-5137