lonevle的小破站

http反向代理https

使用http反向代理https Nginx server { listen 30003; server_name localhost; location / { proxy_pass https://httpbin.org/; proxy_set_header X-Forwarded

Administrator Administrator 发布于 2024-02-01

Go自定义MarshalJSON

Go自定义MarshalJSON 遇到一个问题,需要对空结构体序列化,但是空数组序列化结果是null,如果是空结构体可以用omitempty,但是这是数组,序列化就没了 type Server []struct { IP string `json:"IP"` Version strin

Administrator Administrator 发布于 2023-12-29