File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ func Output(data []byte, format string) {
1717 }
1818
1919 switch format {
20- case cli .OptOutputGo :
21- output .golang ()
22- case cli .OptOutputC :
23- output .c ()
2420 case cli .OptOutputRaw :
2521 output .raw ()
22+ case cli .OptOutputGo :
23+ output .golang ()
2624 case cli .OptOutputHex :
2725 output .hex ()
26+ case cli .OptOutputC :
27+ output .c ()
2828 case cli .OptOutputJs :
2929 output .js ()
3030 case cli .OptOutputPhp :
@@ -51,7 +51,21 @@ func Output(data []byte, format string) {
5151}
5252
5353func (i * output ) comment (char string ) {
54- //
54+ // TODO: We need all flags here
55+ /*
56+ C → // comment
57+ Go → // comment
58+ PowerShell → # comment
59+ PHP → // comment or # comment
60+ JavaScript → // comment
61+ Rust → // comment
62+ C# → // comment
63+ Nim → # comment
64+ Zig → // comment
65+ Ruby → # comment
66+ Python → # comment
67+ Java → // comment
68+ */
5569}
5670
5771func (o * output ) bytesArray (indentSpaces int , cols int ) {
You can’t perform that action at this time.
0 commit comments