2020. július 13., hétfő 7:42:13 UTC+2 időpontban Gobin Sougrakpam a
következőt írta:
>
> Hi Folks,
>
>
> I encountered this error but was able to fix it after setting the
> scanner.Buffer size to a rather large number.
>
> *bufio.Scanner: token too long*
>
> Here is my fixed function:
>
> func sc
On Sun, Jul 12, 2020 at 10:42 PM Gobin Sougrakpam
wrote:
>
> I encountered this error but was able to fix it after setting the
> scanner.Buffer size to a rather large number.
>
> bufio.Scanner: token too long
...
> Now, the question is when I run this function successfully, the first token
> t
Hi Folks,
I encountered this error but was able to fix it after setting the
scanner.Buffer size to a rather large number.
*bufio.Scanner: token too long*
Here is my fixed function:
func scanFile(f *os.File) error {
scanner := bufio.NewScanner(f)
scanner.Buffer(make([]byte, 0, 819200), 819200)
On Jul 12, 2020, at 1:43 PM, Axel Wagner wrote:
>
>
>
> On Sun, Jul 12, 2020 at 9:33 PM Bakul Shah wrote:
> On Jul 12, 2020, at 11:11 AM, Gert wrote:
> >
> > https://play.golang.org/p/6xMgjr1IyFD
> >
> > var fn myHandler
> > fn = func(w http.ResponseWriter, r *http.Request) {
> > fn.GET(w
https://github.com/golang/go/issues/33167
On Sunday, July 12, 2020 at 10:44:02 PM UTC+2 axel.wa...@googlemail.com
wrote:
> On Sun, Jul 12, 2020 at 9:33 PM Bakul Shah wrote:
>
>> On Jul 12, 2020, at 11:11 AM, Gert wrote:
>> >
>> > https://play.golang.org/p/6xMgjr1IyFD
>> >
>> > var fn myHandl
On Sun, Jul 12, 2020 at 9:33 PM Bakul Shah wrote:
> On Jul 12, 2020, at 11:11 AM, Gert wrote:
> >
> > https://play.golang.org/p/6xMgjr1IyFD
> >
> > var fn myHandler
> > fn = func(w http.ResponseWriter, r *http.Request) {
> > fn.GET(w, r)
> > }
> >
> > Just wondering if it's possible somehow to
On Sun, Jul 12, 2020 at 8:02 AM David Riley wrote:
>
> On Jul 12, 2020, at 10:17 AM, Harris Newman wrote:
> >
> > I'm writing a telnet server and have found several packages which provide
> > telnet functionality, but can't find any telnet support in the standard
> > library or other packages i
On Sunday, July 12, 2020 at 9:33:43 PM UTC+2 ba...@iitbombay.org wrote:
> The issue is that fn's type can't be completely determined until
> the RHS func is fully analyzed but for that to work fn must be
> known! This is not a problem when a "const" function references
> itself as in `func foo
On Jul 12, 2020, at 11:11 AM, Gert wrote:
>
> https://play.golang.org/p/6xMgjr1IyFD
>
> var fn myHandler
> fn = func(w http.ResponseWriter, r *http.Request) {
> fn.GET(w, r)
> }
>
> Just wondering if it's possible somehow to write this in one line like so
>
> var fn myHandler = func(w http.R
https://play.golang.org/p/6xMgjr1IyFD
var fn myHandler
fn = func(w http.ResponseWriter, r *http.Request) {
fn.GET(w, r)
}
Just wondering if it's possible somehow to write this in one line like so
var fn myHandler = func(w http.ResponseWriter, r *http.Request) {
fn.GET(w, r)
}
and if that wo
Le lundi 6 juillet 2020 19:36:24 UTC+2, Brian Candler a écrit :
>
> On Monday, 6 July 2020 14:53:55 UTC+1, Ian Davis wrote:
>>
>> Can you write your own ContextReader that checks ctx.Done in its Read
>> method?
>>
>>
> Inside a ContextReader I can check ctx.Done *before* calling the wrapped
> R
On Jul 12, 2020, at 10:17 AM, Harris Newman wrote:
>
> I'm writing a telnet server and have found several packages which provide
> telnet functionality, but can't find any telnet support in the standard
> library or other packages in the golang.org site.
>
> Is there a golang supported telnet
I'm writing a telnet server and have found several packages which provide
telnet functionality, but can't find any telnet support in the standard
library or other packages in the golang.org site.
Is there a golang supported telnet package that allows writing of telnet
clients/servers? If so,
13 matches
Mail list logo