C
C
chincharovpc2021-04-27 10:34:51
go
chincharovpc, 2021-04-27 10:34:51

TCP request in golang?

You need to make a TCP request with XML to another server.
As I understand it, this is done using the net package, but I did not find a connection example.
Please send a link to an article or an example...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Samsonov, 2021-04-27
@chincharovpc

Examples of parsing and unparsing XML
https://gobyexample.com/xml
https://golang.org/src/encoding/xml/example_test.go
Upon sending the request, the link was already thrown off above. And a simple example of sending a tcp request
https://golang.org/pkg/net/
https://gist.github.com/adeekshith/34c20eb45bebe41f5247

P
Papa, 2021-04-27
Stifflera @PapaStifflera

https://golang.org/pkg/net/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question