rename Udp into UDP and Tcp into TCP, like the Go standard library

This commit is contained in:
aler9
2020-09-05 12:58:40 +02:00
parent d8dc7b7cc4
commit e895fcfc37
6 changed files with 51 additions and 51 deletions

View File

@@ -15,16 +15,16 @@ const (
type StreamProtocol int
const (
// StreamProtocolUdp means that the stream uses the UDP protocol
StreamProtocolUdp StreamProtocol = iota
// StreamProtocolUDP means that the stream uses the UDP protocol
StreamProtocolUDP StreamProtocol = iota
// StreamProtocolTcp means that the stream uses the TCP protocol
StreamProtocolTcp
// StreamProtocolTCP means that the stream uses the TCP protocol
StreamProtocolTCP
)
// String implements fmt.Stringer
func (sp StreamProtocol) String() string {
if sp == StreamProtocolUdp {
if sp == StreamProtocolUDP {
return "udp"
}
return "tcp"