github.com/gogf/gf@v1.16.9/net/gudp/gudp_unit_init_test.go (about)

     1  // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
     2  //
     3  // This Source Code Form is subject to the terms of the MIT License.
     4  // If a copy of the MIT was not distributed with this file,
     5  // You can obtain one at https://github.com/gogf/gf.
     6  
     7  package gudp_test
     8  
     9  import (
    10  	"github.com/gogf/gf/container/garray"
    11  )
    12  
    13  var (
    14  	ports = garray.NewIntArray(true)
    15  )
    16  
    17  func init() {
    18  	for i := 9000; i <= 10000; i++ {
    19  		ports.Append(i)
    20  	}
    21  }