Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed Jun 5, 2024
1 parent b198210 commit e1f9d23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/jsport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Install gopherjs
run: |
go install github.com/gopherjs/[email protected]
go mod download golang.org/x/exp
- name: Build
run: gopherjs build github.com/sealdice/dicescript/jsport -o jsport/dicescript.cjs
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ require (
github.com/gopherjs/gopherjs v1.18.0-beta1
github.com/peterh/liner v1.2.2
github.com/stretchr/testify v1.8.0
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/mattn/go-runewidth v0.0.3 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect
golang.org/x/sys v0.12.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
7 changes: 3 additions & 4 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ type RollConfig struct {
}

type customDiceItem struct {
expr string
callback func(ctx *Context, groups []string) *VMValue

parse func(ctx *Context, p *parser)
// expr string
// callback func(ctx *Context, groups []string) *VMValue
// parse func(ctx *Context, p *parser)

// 该怎样写呢?似乎将一些解析相关的struct暴露出去并不合适
// 这里我有三个选项,第一种是创建一种更简单的语法进行编译:例如
Expand Down

0 comments on commit e1f9d23

Please sign in to comment.