選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

web_windows.go 464B

12345678910111213141516171819
  1. // +build windows
  2. // Copyright 2016 The Gitea Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package cmd
  6. import (
  7. "net/http"
  8. )
  9. func runHTTP(listenAddr string, m http.Handler) error {
  10. return http.ListenAndServe(listenAddr, m)
  11. }
  12. func runHTTPS(listenAddr, certFile, keyFile string, m http.Handler) error {
  13. return http.ListenAndServeTLS(listenAddr, certFile, keyFile, m)
  14. }