🎨解决template渲染时遇到转移字符问题

This commit is contained in:
coward
2024-03-08 10:43:22 +08:00
parent 4597a1d442
commit d41a6e9ba2
8 changed files with 769 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
package template_data
type Server struct {
Address string `json:"address"`
ListenPort int `json:"listenPort"`
PrivateKey string `json:"privateKey"`
MTU int `json:"mtu"`
PostUp string `json:"postUp"`
PreDown string `json:"preDown"`
PostDown string `json:"postDown"`
Table string `json:"table"`
Clients []Client `json:"clients"`
}
type Client struct {
PublicKey string `json:"publicKey"`
PresharedKey string `json:"presharedKey"`
AllowedIPS string `json:"allowedIps"`
PersistentKeepalive string `json:"persistentKeepalive"`
Endpoint string `json:"endpoint"`
}