CATEGORY

GOLANG Solutions

Golang read multiple lines from stdin [SOLVED]

We can use fmt.Scan(), bufio.Reader(), bufio.Scanner() function in golang to read multiple lines from STDIN input with examples.

By tuannguyen · 4 min read · GOLANG Solutions

Golang remove backslash from string [SOLVED]

We can use strings.replace() and strings.replaceall() function to remove backslash from string in golang by replacing backslash with empty character

By tuannguyen · 3 min read · GOLANG Solutions