Commit 7127d098 authored by Geoff Simmons's avatar Geoff Simmons

go fmt changes

parent 20b2bc21
...@@ -183,11 +183,11 @@ type AnchorType string ...@@ -183,11 +183,11 @@ type AnchorType string
const ( const (
// None indicates no anchoring. // None indicates no anchoring.
None AnchorType = "none" None AnchorType = "none"
// Start indicates anchoring at start-of-string. // Start indicates anchoring at start-of-string.
Start = "start" Start = "start"
// Both indicates anchoring at start- and end-of-string. // Both indicates anchoring at start- and end-of-string.
Both = "both" Both = "both"
) )
// MatchFlagsType is a collection of options that modify matching // MatchFlagsType is a collection of options that modify matching
...@@ -220,21 +220,21 @@ const ( ...@@ -220,21 +220,21 @@ const (
Replace MethodType = "replace" Replace MethodType = "replace"
// Sub means that the first matching substring of the target // Sub means that the first matching substring of the target
// after a regex match is substituted with the new value. // after a regex match is substituted with the new value.
Sub = "sub" Sub = "sub"
// Suball means that each non-overlapping matching substring // Suball means that each non-overlapping matching substring
// of the target is substituted. // of the target is substituted.
Suball = "suball" Suball = "suball"
// Rewrite means that the target is rewritten with the rule in // Rewrite means that the target is rewritten with the rule in
// the Rewrite field, possibly with backreferences. // the Rewrite field, possibly with backreferences.
Rewrite = "rewrite" Rewrite = "rewrite"
// Append means that a string is concatenated after the source // Append means that a string is concatenated after the source
// string, with the result written to the target. // string, with the result written to the target.
Append = "append" Append = "append"
// Prepend means that a string is concatenated after the // Prepend means that a string is concatenated after the
// source string. // source string.
Prepend = "prepend" Prepend = "prepend"
// Delete means that the target object is deleted. // Delete means that the target object is deleted.
Delete = "delete" Delete = "delete"
) )
// RewriteCompare classifies the comparison operation used to evaluate // RewriteCompare classifies the comparison operation used to evaluate
...@@ -245,9 +245,9 @@ const ( ...@@ -245,9 +245,9 @@ const (
// RewriteMatch means that a regex match is executed. // RewriteMatch means that a regex match is executed.
RewriteMatch RewriteCompare = "match" RewriteMatch RewriteCompare = "match"
// RewriteEqual means that fixed strings are tested for equality. // RewriteEqual means that fixed strings are tested for equality.
RewriteEqual = "equal" RewriteEqual = "equal"
// Prefix indicates a fixed-string prefix match. // Prefix indicates a fixed-string prefix match.
Prefix = "prefix" Prefix = "prefix"
) )
// VCLSubType classifies the VCL subroutine in which a rewrite is // VCLSubType classifies the VCL subroutine in which a rewrite is
...@@ -256,29 +256,29 @@ type VCLSubType string ...@@ -256,29 +256,29 @@ type VCLSubType string
const ( const (
// Recv for vcl_recv // Recv for vcl_recv
Recv VCLSubType = "recv" Recv VCLSubType = "recv"
// Pipe for vcl_pipe // Pipe for vcl_pipe
Pipe = "pipe" Pipe = "pipe"
// Pass for vcl_pass // Pass for vcl_pass
Pass = "pass" Pass = "pass"
// Hash for vcl_hash // Hash for vcl_hash
Hash = "hash" Hash = "hash"
// Purge for vcl_purge // Purge for vcl_purge
Purge = "purge" Purge = "purge"
// Miss for vcl_miss // Miss for vcl_miss
Miss = "miss" Miss = "miss"
// Hit for vcl_hit // Hit for vcl_hit
Hit = "hit" Hit = "hit"
// Deliver for vcl_deliver // Deliver for vcl_deliver
Deliver = "deliver" Deliver = "deliver"
// Synth for vcl_synth // Synth for vcl_synth
Synth = "synth" Synth = "synth"
// BackendFetch for vcl_backend_fetch // BackendFetch for vcl_backend_fetch
BackendFetch = "backend_fetch" BackendFetch = "backend_fetch"
// BackendResponse for vcl_backend_response // BackendResponse for vcl_backend_response
BackendResponse = "backend_response" BackendResponse = "backend_response"
// BackendError for vcl_backend_error // BackendError for vcl_backend_error
BackendError = "backend_error" BackendError = "backend_error"
) )
// SelectType classifies the determination of the rewrite rule to // SelectType classifies the determination of the rewrite rule to
...@@ -293,21 +293,21 @@ type SelectType string ...@@ -293,21 +293,21 @@ type SelectType string
const ( const (
// Unique means that only one rewrite rule may match, // Unique means that only one rewrite rule may match,
// otherwise VCL failure is invoked. // otherwise VCL failure is invoked.
Unique SelectType = "unique" Unique SelectType = "unique"
// First means that the first matching rule in the order of // First means that the first matching rule in the order of
// the Rules array is executed. // the Rules array is executed.
First = "first" First = "first"
// Last means that the last matching rule is executed. // Last means that the last matching rule is executed.
Last = "last" Last = "last"
// Exact means that, for a prefix match, the rule by which the // Exact means that, for a prefix match, the rule by which the
// full string matched exactly is executed. // full string matched exactly is executed.
Exact = "exact" Exact = "exact"
// Longest means that the rule for the longest prefix that // Longest means that the rule for the longest prefix that
// matched is executed. // matched is executed.
Longest = "longest" Longest = "longest"
// Shortest means that the rule for the shortest prefix that // Shortest means that the rule for the shortest prefix that
// matched is executed. // matched is executed.
Shortest = "shortest" Shortest = "shortest"
) )
// RewriteSpec is the configuration for a set of rewrite rules; // RewriteSpec is the configuration for a set of rewrite rules;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment