Skip to content

Commit

Permalink
allow printing unexported struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Sep 19, 2023
1 parent 2dd9e6c commit b7644b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: gh-pages

on:
push:
branches: [ "patch/gnochess" ]
branches: [ "master" ]
workflow_dispatch:

permissions:
Expand Down
2 changes: 1 addition & 1 deletion gnovm/pkg/gnolang/gonative.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ func gno2GoType(t Type) reflect.Type {
fn := string(field.Name)
pkgPath := ""
if !isUpper(fn) {
pkgPath = ct.PkgPath
fn = "X" + fn
}
gfs[i] = reflect.StructField{
Name: fn,
Expand Down

0 comments on commit b7644b4

Please sign in to comment.