Closed originnets closed 3 years ago
server { listen 127.0.0.1:8080; server_name www.test.com test.com; index index.html index.htm; }
How to parse the file directly
payload, err := crossplane.Parse("path/to/server.conf", &crossplane.ParseOptions{})
This should give you a Payload struct that has the parsed content.
Payload
Does this answer your question?
server { listen 127.0.0.1:8080; server_name www.test.com test.com; index index.html index.htm; }
How to parse the file directly