Categorygithub.com/chenxuan520/goweb
module
0.0.2
Repository: https://github.com/chenxuan520/goweb.git
Documentation: pkg.go.dev

# README

goweb

  • 一个轻量化简单的web服务器,用于进行临时测试

Author

  • chenxuan

使用方法

  • clonemake编译,或者直接下载二进制文件运行

配置文件

  • 配置文件为config/config.json,配置选项为
{
  "server": {
    "port": 5200, // 绑定的端口
    "host": "0.0.0.0" // 绑定的ip(直接为0.0.0.0即可)
  },
  "static_paths": [
    {
      "file_path": ".", // 静态文件的系统路径
      "web_path": "/" // 绑定到web服务器的路径
    }
  ]
}

# Packages

No description provided by the author