package hertzx import ( "git.liteyuki.org/LiteyukiStudio/folium/osx" "github.com/cloudwego/hertz/pkg/app/server" "github.com/cloudwego/hertz/pkg/common/config" ) func NewHertz(opts ...config.Option) *server.Hertz { opts = append([]config.Option{ server.WithHostPorts(osx.GetEnv("HERTZ_HOST_PORT", ":8888")), }, opts...) return server.New(opts...) }