Skip to content

Commit

Permalink
compiler: change struct field order
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed May 20, 2024
1 parent 2c2b0f1 commit 7fece64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ import (
type Compiler struct {
schemas map[urlPtr]*Schema
roots *roots
assertFormat bool
assertContent bool
formats map[string]*Format
decoders map[string]*Decoder
mediaTypes map[string]*MediaType
assertFormat bool
assertContent bool
}

// NewCompiler create Compiler Object.
func NewCompiler() *Compiler {
return &Compiler{
schemas: map[urlPtr]*Schema{},
roots: newRoots(),
assertFormat: false,
assertContent: false,
formats: map[string]*Format{},
decoders: map[string]*Decoder{},
mediaTypes: map[string]*MediaType{},
assertFormat: false,
assertContent: false,
}
}

Expand Down

0 comments on commit 7fece64

Please sign in to comment.