From 5e645198a7dcda59a5c77fa4b44e9015d7d095df Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Wed, 6 Aug 2025 17:27:01 +0200 Subject: [PATCH] Update README_GO.md --- README_GO.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README_GO.md b/README_GO.md index 81eb9d9..a84b3f3 100644 --- a/README_GO.md +++ b/README_GO.md @@ -21,14 +21,13 @@ backend {{ .Name }} cookie {{ .CookieName }} {{ .CookieFlags }} {{- end }} + {{- $backend := . }} {{- range .Servers }} - server {{ .Name }} {{ .Address }}:{{ .Port }}{{ if $.HealthCheck }} check{{ end }}{{ if $.CookieName }} cookie {{ .Cookie }}{{ end }} {{ $.ServerOptions }} + server {{ .Name }} {{ .Address }}:{{ .Port }}{{ if $backend.HealthCheck }} check{{ end }}{{ if $backend.CookieName }} cookie {{ .Cookie }}{{ end }}{{ if $backend.ServerOptions }} {{ $backend.ServerOptions }}{{ end }} {{- end }} {{- end }} -{{- end }} - ```