// SPDX-License-Identifier: BSD-2-Clause // SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu package main import ( "log" "net/http" "time" ) func main() { server := &http.Server{ Addr: listenAddr, Handler: http.HandlerFunc(handler), ReadTimeout: time.Duration(readTimeout) * time.Second, WriteTimeout: time.Duration(writeTimeout) * time.Second, IdleTimeout: time.Duration(idleTimeout) * time.Second, ReadHeaderTimeout: time.Duration(readHeaderTimeout) * time.Second, } log.Fatal(server.ListenAndServe()) }