Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP2_Freenet_Go_Socket
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jeremy.martinot
TP2_Freenet_Go_Socket
Commits
4edeb9aa
Commit
4edeb9aa
authored
3 years ago
by
julian.ruhl
Browse files
Options
Downloads
Patches
Plain Diff
Co-authored-by: Martinoty Jérémy <jeremy.martinot@hes-so.ch>
parent
3dc5b6ed
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
client/client.go
+21
-6
21 additions, 6 deletions
client/client.go
with
21 additions
and
6 deletions
client/client.go
+
21
−
6
View file @
4edeb9aa
package
main
/*func createMessage(id int, file string) node.Message {
return node.Message{
Cmd: id,
Filename: file,
import
(
"bufio"
"fmt"
"os"
)
type
Message
struct
{
Id
int
Key
int
Type_
string
}
}*/
func
main
()
{
func
createMessage
(
id
int
,
key
int
,
_type
string
)
Message
{
return
Message
{
Id
:
id
,
Key
:
key
,
Type_
:
_type
,
}
}
func
main
()
{
reader
:=
bufio
.
NewReader
(
os
.
Stdin
)
fmt
.
Print
(
"Quel fichiez recherhez vous ? (ID)"
)
input
,
_
:=
reader
.
ReadString
(
'\n'
)
}
This diff is collapsed.
Click to expand it.
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