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

22 行
349B

  1. package main
  2. import (
  3. "log"
  4. "net/http"
  5. )
  6. func main() {
  7. if readConfig() != nil {
  8. log.Fatal("unable to read config, program quit")
  9. return
  10. }
  11. //setup handler
  12. http.HandleFunc("/", webrootHandler)
  13. http.HandleFunc("/api", apiV1Main)
  14. //http.ListenAndServe("127.0.0.1:65500", nil)
  15. //CreateDefaultMenu()
  16. http.ListenAndServe(":65500", nil)
  17. }