DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. When developing agents or performing backend integration, JSON data often needs to be converted into Go-compliant struct definitions. This article introduces a plugin that can directly perform this conversion.
Plugin Overview¶
dsh--to-go is a network-enabled tool plugin maintained by uckkk. Its core function is to accept JSON data and output a Go struct definition with json tags.
Core Features¶
- JSON input: Accepts JSON-formatted data.
- Struct output: Generates Go code with
jsontags.
Installation and Activation¶
Run the following command to install:
dsh plugin add dsh--to-go
After installation, configure dsh.profile.bundles in the project’s package.json:
"dsh.profile.bundles": ["dsh-json-to-go"]
Typical Usage¶
Invoke the _to_go tool in a session. For example:
→ 调用 _to_go(data={id:1,name:"test"})
Notes¶
The plugin runs third-party code locally with the permissions of the current DSH process. Please review the source code and license (MIT) yourself before installing.
By automating the conversion from JSON to Go structs, the plugin reduces the amount of manual coding required. The plugin directory and source code links are provided below.