I have a chat server project here with two parts, one as the receiver (lnet) and one as the server (nhelo). But sometimes a person will be typing, then a message will pop up on the screen, the message will be on the same line, for example:
I am typing foo
I receive a message that says hello world
STDOUT looks like this:
foohello world
The most simple solution I can see would be moving foo up a line, or moving hello world one line back Whatever makes stdout look like this:
I am typing foo
I receive a message that says hello world
STDOUT looks like this:
hello world
foo
I have been researching go printing verbs for ~5 hours, could anybody help?
Look at this link to math.Abs: https://golang.org/pkg/math/#Abs
What it does is return the absolute value of the argument given. Thats why math.Sqrt works when you use it.
You should really read the godocs. They are easy to understand and you will be able to learn the basics for yourself...