GOLANG TIP

How to write multiline strings in GO

Rakesh
Level Up Coding

--

It is possible by using a raw string literal which is a string that is delimited by backticks. For anyone here who wants a quick ctrl+c ctrl+v solution is :

`line 1
line 2
line 3`
Photo by Yerlin Matu on Unsplash

What is a string literal

A string literal represents a string constant which is made up of concatenating a…

--

--

Building a venture in stealth 🥇 I write about tech occasionally👩‍💻 Twitter: https://twitter.com/rockey5520