Skip to content

Commit

Permalink
fix: alignment for structures
Browse files Browse the repository at this point in the history
  • Loading branch information
WoozyMasta committed Jan 13, 2025
1 parent c5fcba2 commit 290755a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cli/a2s/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (

// CLI options
type Options struct {
JSON bool `short:"j" long:"json"` // Output in JSON format
Raw bool `short:"r" long:"raw"` // Disable parse A2S_RULES values to types
Timeout int `short:"t" long:"deadline-timeout" default:"3"` // Set timeout in seconds
Buffer int `short:"b" long:"buffer-size" default:"8096"` // Set buffer size
PingCount int `short:"c" long:"ping-count" default:"0"` // Set the number of ping requests to send
PingPeriod int `short:"p" long:"ping-period" default:"1"` // Set the period between pings in seconds
JSON bool `short:"j" long:"json"` // Output in JSON format
Raw bool `short:"r" long:"raw"` // Disable parse A2S_RULES values to types
Help bool `short:"h" long:"help"` // Show this help message
Version bool `short:"v" long:"version"` // Show version and build info
}
Expand Down
2 changes: 1 addition & 1 deletion cli/a3sb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (

// CLI options
type Options struct {
JSON bool `short:"j" long:"json"` // Output in JSON format
AppID uint64 `short:"i" long:"app-id"` // AppID for more accurate results
Timeout int `short:"t" long:"deadline-timeout" default:"3"` // Set timeout in seconds
Buffer int `short:"b" long:"buffer-size" default:"8096"` // Set buffer size
PingCount int `short:"c" long:"ping-count" default:"0"` // Set the number of ping requests to send
PingPeriod int `short:"p" long:"ping-period" default:"1"` // Set the period between pings in seconds
JSON bool `short:"j" long:"json"` // Output in JSON format
Help bool `short:"h" long:"help"` // Show this help message
Version bool `short:"v" long:"version"` // Show version and build info
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/keywords/arma3.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ type Arma3 struct {
TimeLeft time.Duration `json:"time_left,omitempty"` // Time left of mission
RequiredVersion uint32 `json:"required_version,omitempty"` // Required game version
RequiredBuildNo uint32 `json:"required_buildno,omitempty"` // Required game build number
ServerState types.ServerState `json:"server_state,omitempty"` // State of server
Language types.ServerLang `json:"language,omitempty"` // Server Language
Longitude int32 `json:"longitude,omitempty"` // Coordinates: Longitude
Latitude int32 `json:"latitude,omitempty"` // Coordinates: Latitude
ServerState types.ServerState `json:"server_state,omitempty"` // State of server
BattlEye bool `json:"battleye,omitempty"` // Protected with BattlEye
Difficulty byte `json:"difficulty,omitempty"` // Difficulty on server
EqualModRequired bool `json:"equal_mod_required,omitempty"` // Require all mods equal server
Lock bool `json:"lock,omitempty"` // Locked state
VerifySignatures bool `json:"verify_signatures,omitempty"` // Verify signatures
Dedicated bool `json:"dedicated,omitempty"` // Is dedicated server
Longitude int32 `json:"longitude,omitempty"` // Coordinates: Longitude
Latitude int32 `json:"latitude,omitempty"` // Coordinates: Latitude
Param1 byte `json:"param_1,omitempty"` // First params
Param2 byte `json:"param_2,omitempty"` // Second params
AllowedFilePatching bool `json:"allowed_filepatching,omitempty"` // Enabled fle patching
Expand Down

0 comments on commit 290755a

Please sign in to comment.