github.com/GuanceCloud/cliutils@v1.1.21/network/network_test.go (about)

     1  // Unless explicitly stated otherwise all files in this repository are licensed
     2  // under the MIT License.
     3  // This product includes software developed at Guance Cloud (https://www.guance.com/).
     4  // Copyright 2021-present Guance, Inc.
     5  
     6  package network
     7  
     8  import (
     9  	"log"
    10  	"testing"
    11  )
    12  
    13  func TestParseListen(t *testing.T) {
    14  	ip, port, err := ParseListen(":48080")
    15  	log.Println(ip, port, err)
    16  }