> On 21 Jul 2016, at 11:02, Homer Li <
01ja...@gmail.com> wrote:
>
> Could I get file path from the file descriptor number ?
> OS : Linux
> How to write in golang ?
On Linux (and indeed most if not all POSIX like systems)
one cannot get a file path from the file descriptor number.
This is irrespective of programming language used.
Consider what happens if you open a file, then unlink it.
Or open it then rename it. Or open a file with multiple links
to it. Etc.
--
Alex Bligh