Fix minor code formatting issue in mistake #11

This commit is contained in:
Tim Zhang 2025-06-01 09:28:32 +10:00
parent d21c8462b1
commit 29b4d0299d
3 changed files with 4 additions and 4 deletions

View file

@ -236,7 +236,7 @@ func WithPort(port int) Option {
}
}
func NewServer(addr string, opts ...Option) ( *http.Server, error) {
func NewServer(addr string, opts ...Option) (*http.Server, error) {
var options options
for _, opt := range opts {
err := opt(&options)

View file

@ -243,7 +243,7 @@ func WithPort(port int) Option {
}
}
func NewServer(addr string, opts ...Option) ( *http.Server, error) {
func NewServer(addr string, opts ...Option) (*http.Server, error) {
var options options
for _, opt := range opts {
err := opt(&options)
@ -2036,4 +2036,4 @@ ticker = time.NewTicker(1000 * time.Nanosecond)
???+ info "要約"
Docker と Kubernetes にデプロイする際の CPU スロットリングを回避するには、Go言語が CFS 対応ではないことに留意してください。
Docker と Kubernetes にデプロイする際の CPU スロットリングを回避するには、Go言語が CFS 対応ではないことに留意してください。

View file

@ -233,7 +233,7 @@ func WithPort(port int) Option {
}
}
func NewServer(addr string, opts ...Option) ( *http.Server, error) {
func NewServer(addr string, opts ...Option) (*http.Server, error) {
var options options
for _, opt := range opts {
err := opt(&options)