conf := &tls.Config{ NextProtos: []string{"h2", "http/1.1"}, }
conf := &tls.Config{} conf.NextProtos = []string{"quic-edge-13", "http/1.1"}In this example, a Config struct is created with an empty NextProtos field, which is then set to a list of two protocols: quic-edge-13 and http/1.1. This means that the server will advertise support for these two protocols during the TLS handshake. Package Library: `crypto/tls`