mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +08:00
Fix minor code formatting issue in mistake #11
This commit is contained in:
parent
d21c8462b1
commit
29b4d0299d
3 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 対応ではないことに留意してください。
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue