Go obtain a directory name from the сyrillic as an argument
How to get the full path, not cut garbage.
Example: The path as a program argument /home/spouk/spouk.download/torrent/Сергей Лукьяненко, Собрание сочинений/
I get in the trimmed version of the program, how to fix?
/Home/spouk/spouk.download/torrent/Сергей
example simple code
package main
import (
"flag"
"fmt"
)
func main() {
wordPtr := flag.String("path", "foo", "a string")
flag.Parse()
fmt.Printf("Flag: -path=`%v`
flag.Args: %v
", *wordPtr, flag.Args())
fmt.Printf("Rune: %v
", []rune(*wordPtr))
}