You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,7 @@ type TestString struct {
127
127
Inputmap[string]interface{}
128
128
Expect_args []string
129
129
Expect_global []string
130
+
Expect_global_prefix []string// optional
130
131
}
131
132
```
132
133
@@ -161,6 +162,8 @@ add a new bloc of JSON object (dict / hash / map):
161
162
*`input` correspond to the `map[string]interface{}` of docopt parsed options.
162
163
*`expect_args` the text rows of the associative array code for bash4 that is outputed by `Print_bash_args()` matched in order.
163
164
*`expect_global` the text definition of the bash global vars that is outputed by `Print_bash_global()` matched in order.
165
+
*`expect_global_prefix`[optional] if present will be used for testing `Mangle_key` + `Global_prefix` instead of [`rewrite_prefix("ARGS",)`](../docopts_test.go)
166
+
So in `expect_global_prefix` the prefix must be `ARGS` + `_`.
164
167
165
168
166
169
### testcases.docopt (agnostic test universal to docopt parsing language)
@@ -185,3 +188,33 @@ $ prog -a
185
188
```
186
189
* followed with the exptected output in JSON format (single ligne) (no empty line between `prog` call and expected JSON)
187
190
*`\n` newline separator if some other call are added for the same `Usage:` definition
191
+
192
+
## Golang debugger
193
+
194
+
Debugger is a must for any programming language. Go provide an extrenal debugger named [delve](https://github.com/go-delve/delve)
0 commit comments