Skip to content

Commit

Permalink
Move Array struct in types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rhartert committed May 26, 2024
1 parent 16ae962 commit 31c878a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fzn/arrays.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import (
"github.com/rhartert/gofzn/fzn/tok"
)

type Array struct {
Start int
End int
}

func parseArrayOf(p *parser) (*Array, error) {
if p.next().Type != tok.Array {
return nil, fmt.Errorf("should start with array")
Expand Down
5 changes: 5 additions & 0 deletions fzn/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,8 @@ type RangeInt struct {
type RangeFloat struct {
Min, Max float64
}

type Array struct {
Start int
End int
}

0 comments on commit 31c878a

Please sign in to comment.