mirror of
https://github.com/moby/moby.git
synced 2026-08-08 17:11:38 +00:00
full diff: https://github.com/moby/buildkit/compare/d1e5d1a8f771...v0.27.0-rc1 Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
14 lines
400 B
Go
14 lines
400 B
Go
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package swag
|
|
|
|
import "github.com/go-openapi/swag/netutils"
|
|
|
|
// SplitHostPort splits a network address into a host and a port.
|
|
//
|
|
// Deprecated: use [netutils.SplitHostPort] instead.
|
|
func SplitHostPort(addr string) (host string, port int, err error) {
|
|
return netutils.SplitHostPort(addr)
|
|
}
|