Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
ab39d3ab
Commit
ab39d3ab
authored
Aug 09, 2018
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed lint warnings
parent
b249bb5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/formatter/examples_test.go
common/formatter/examples_test.go
+2
-2
No files found.
common/formatter/examples_test.go
View file @
ab39d3ab
...
...
@@ -61,7 +61,7 @@ func ExampleJSONFormatter_Format() {
// float32 ignored
}
func
ExampleJSONFormatter_
Prin
t_debug
()
{
func
ExampleJSONFormatter_
Forma
t_debug
()
{
valid
:=
TestStruct
{
20
}
invalid
:=
"invalid"
jf
:=
formatter
.
JSONFormatter
{
...
...
@@ -91,7 +91,7 @@ func ExampleJSONFormatter_Print_debug() {
// {"value2":10} <nil>
}
func
Example
Format
()
{
func
Example
SetFormatter
()
{
formatter
.
SetFormatter
(
"text"
)
fmt
.
Println
(
formatter
.
Format
(
TestStruct
{
5
}))
formatter
.
SetFormatter
(
"json"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment