type SocketOptionData … // Getsockopt defines the function to get socket options requested by channelz. // It is to be passed to syscall.RawConn.Control(). func (s *SocketOptionData) Getsockopt(fd uintptr) { … } // GetSocketOption gets the socket option info of the conn. func GetSocketOption(socket any) *SocketOptionData { … }