How Accept() works exactly?

Accept is a system call from the Operating System. It is just wrapped by the Go runtime so that it can be polled later for reading and writing.

If you want to know more about accept, you can read the manual page: http://man7.org/linux/man-pages/man2/accept.2.html