Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
byteview
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Bläse
byteview
Commits
c176e695
Commit
c176e695
authored
Jun 17, 2019
by
Fabian Bläse
Browse files
Options
Downloads
Patches
Plain Diff
rudi comments
parent
acc82f15
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.go
+12
-0
12 additions, 0 deletions
main.go
with
12 additions
and
0 deletions
main.go
+
12
−
0
View file @
c176e695
...
...
@@ -103,6 +103,11 @@ func subdissect(data map[string]interface{}) interface{} {
}
if
dissector
==
""
{
// github.com/pkg/errors
// return nil, errors.Wrapf(err, "...")
// (foo, error)
// return nil, fmt.Errorf("no dissector given or found for subdissect request")
// log.Printf("no dissector given or found for subdissect request")
fmt
.
Fprintln
(
os
.
Stderr
,
"No dissector given or found for subdissect request."
)
return
nil
}
...
...
@@ -160,6 +165,13 @@ func dissect(data []byte, dissector string) interface{} {
err
=
json
.
Unmarshal
(
out
.
Bytes
(),
&
decode
);
die
(
err
)
/*
type foo struct {
Subdisect string `json:'_subdisect'`
}
[]map[string]foo
*/
check_for_subdissect
(
&
decode
)
return
decode
...
...
This diff is collapsed.
Click to expand it.
Fabian Bläse
@jo06coga
mentioned in commit
6c0f47a7
·
Jun 17, 2019
mentioned in commit
6c0f47a7
mentioned in commit 6c0f47a761f031aa8930bdad62075cd2f25bd85d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment