Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go123
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go123
Commits
b651eec7
Commit
b651eec7
authored
May 27, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tracing: Fix typos
parent
cfdf9353
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tracing/tracing.go
tracing/tracing.go
+3
-2
No files found.
tracing/tracing.go
View file @
b651eec7
// Copyright (C) 2017-20
19
Nexedi SA and Contributors.
// Copyright (C) 2017-20
20
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
// Kirill Smelkov <kirr@nexedi.com>
//
//
// This program is free software: you can Use, Study, Modify and Redistribute
// This program is free software: you can Use, Study, Modify and Redistribute
...
@@ -166,6 +166,7 @@ available as regular functions prefixed with imported package name:
...
@@ -166,6 +166,7 @@ available as regular functions prefixed with imported package name:
tracing.Lock()
tracing.Lock()
hello_traceHello_Attach(nil, func(who string) {
hello_traceHello_Attach(nil, func(who string) {
fmt.Printf("SayHello in package hello: %s", who)
fmt.Printf("SayHello in package hello: %s", who)
})
tracing.Unlock()
tracing.Unlock()
...
...
...
@@ -173,7 +174,7 @@ available as regular functions prefixed with imported package name:
...
@@ -173,7 +174,7 @@ available as regular functions prefixed with imported package name:
Gotrace
Gotrace
The way //trace:event and //trace:import work
s
is via additional code being
The way //trace:event and //trace:import work is via additional code being
generated for them. Whenever a package uses any //trace: directive,
generated for them. Whenever a package uses any //trace: directive,
it has to organize to run `gotrace gen` on its sources for them to work,
it has to organize to run `gotrace gen` on its sources for them to work,
usually with the help of //go:generate. For example:
usually with the help of //go:generate. For example:
...
...
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