1
1
mirror of https://github.com/wader/fq.git synced 2024-12-22 12:51:38 +03:00

Merge pull request #626 from wader/cleanup-old-help

decode: Cleanup old unused help system code
This commit is contained in:
Mattias Wadman 2023-03-28 21:59:47 +02:00 committed by GitHub
commit 664bc3b1b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,32 +17,10 @@ type Format struct {
RootArray bool
RootName string
Dependencies []Dependency
Help FormatHelp
Functions []string
SkipDecodeFunction bool
}
type HelpExample struct {
Comment string
Code string
}
type HelpFunction struct {
Name string
Examples []HelpExample
}
type HelpReference struct {
Title string
URL string
}
type FormatHelp struct {
Notes string
Functions []HelpFunction
References []HelpReference
}
func FormatFn(d func(d *D) any) Group {
return Group{{
DecodeFn: d,