Re: [go-nuts] Reading multi line input from user

2020-06-21 Thread Miguel Angel Rivera Notararigo
Hi! you may try this https://play.golang.org/p/hDDyzm6IfED or this
https://play.golang.org/p/MoKAbIbtR_J, but the user cannot edit previous
lines and he/she have to hit Ctrl + D when is done

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAF9DLCkK-ouMP%2BDiPcpswO1qBQzP8XPNS45zpa3L%2BbhtmE5zvA%40mail.gmail.com.


[go-nuts] Reading multi line input from user

2020-06-21 Thread Durga Someswararao G
Hi,

I am trying to read multi line user input, which I don't know the count of 
those lines. Is there any way to do it.

Eg:

User will give one sample piece of code like below we have to read complete 
code without skipping content. As it is a piece of code we cannot get 
number of lines we have to read.

import java.io.*;

public class SquareNum {

   public static void main(String args[]) throws IOException
   {
  System.out.println("This is a small Java Program!");
   }
}

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/05b21718-f600-44a8-a46c-d22561ed9776o%40googlegroups.com.