Currently, in the x/sys/unix package, there are SetsockoptLinger() and SetsockoptTimeval() for setting the Linger and Timeout options, however, there is no corresponding getter for them.
Due to the lack of getters, there's no viable way to get those socket options (i.e. linger and timeout), unless doing syscalls myself, which is not preferable.