v0.5-rc3: update docker port detect mechanism, docker compose file and doc update

This commit is contained in:
yusing
2024-09-17 03:11:04 +08:00
parent 1120991019
commit 16b507bc7c
10 changed files with 77 additions and 34 deletions

View File

@@ -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