Skip to content

Commit

Permalink
Really mark WithPort as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Apr 5, 2024
1 parent 4997557 commit d3fe828
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func WithDisallowUnknownFields(b bool) func(*Server) {
// WithPort sets the port of the server. For example, 8080.
// If not specified, the default port is 9999.
// If you want to use a different address, use [WithAddr] instead.
//
// Deprecated: Please use fuego.WithAddr(addr string)
func WithPort(port int) func(*Server) {
return func(s *Server) { s.Server.Addr = fmt.Sprintf("localhost:%d", port) }
Expand Down

0 comments on commit d3fe828

Please sign in to comment.