lgo icon indicating copy to clipboard operation
lgo copied to clipboard

Stop printing return values of fmt.Print functions

Open yunabe opened this issue 7 years ago • 1 comments

In the current version, lgo always prints the result of the last expression. Because of this spec, lgo prints (n, error) pair if the last statement of a code block is fmt.Println(...). Obviously, this is not an ideal behavior. We should stop printing the last expression under some conditions.

yunabe avatar Oct 19 '17 03:10 yunabe

yeah, agree, it really confuses me when I got this result: Screen Shot 2020-02-24 at 2 54 20 PM

Friday21 avatar Feb 24 '20 06:02 Friday21