mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-21 17:10:14 +01:00
v0.5-rc3: update docker port detect mechanism, docker compose file and doc update
This commit is contained in:
@@ -16,7 +16,7 @@ func NewPort(v string) (Port, E.NestedError) {
|
||||
return NewPortInt(p)
|
||||
}
|
||||
|
||||
func NewPortInt(v int) (Port, E.NestedError) {
|
||||
func NewPortInt[Int int | uint16](v Int) (Port, E.NestedError) {
|
||||
pp := Port(v)
|
||||
if err := pp.boundCheck(); err.IsNotNil() {
|
||||
return ErrPort, err
|
||||
|
||||
Reference in New Issue
Block a user