TAG

Golang

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

Golang Escape Backslash [100% Working]

We can either use additional backslash to escape backslash or raw string literals to convert entire text to string.

By admin · 2 min read · GO