mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
7.1k stars 336 forks source link

syntax/typedjson: expose shfmt's "typed JSON" as Go APIs #903

Closed mvdan closed 2 years ago

mvdan commented 2 years ago

(see commit message)

Fixes #885.

mvdan commented 2 years ago

cc @JounQin @cilki

FYI @JounQin, the PR to make this work with tinygo will come after. Right now it doesn't work, but we are not far:

../syntax/typedjson/json.go:78:33: VisibleFields not declared by package reflect
../syntax/typedjson/json.go:89:21: StructOf not declared by package reflect
JounQin commented 2 years ago

It is so great to hear!

JounQin commented 7 months ago

Hi, @mvdan , are we close to tinygo support? Is there still any blocking?