all repos — website @ e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93

My website

internal/server/tcp.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
package server

import (
	"website/internal/listenfd"
)

func (s *Server) serveTCP() error {
	l, err := listenfd.GetListener(0, s.Addr)
	if err != nil {
		return err
	}

	return s.Serve(l)
}