DEV Community

From PHP to Go: Arrays

Antonio Sánchez on March 02, 2019

This is a quick and dirty article about arrays, slices, and maps in Go for all those who come from PHP and are getting started with this fantastic ...
Collapse
 
asanchez profile image
Antonio Sánchez • Edited

Titles 4, 5 and 6 are not being represented as titles. This must be a problem of dev.to, since the markdown is correct. I am sorry for the inconveniences and I hope someone from dev.to take a look at this.

Collapse
 
asanchez profile image
Antonio Sánchez • Edited

Fixed. I hade to make sure the closing </pre> tag was in another line as the opening <pre> tag. I don't know why, but it is working like this.

Collapse
 
andy profile image
Andy Zhao (he/him)

Hey Antonio, we recommend using codeblocks like you would with Markdown in order to get the <pre> tag functionality. Here's an example:

Code block usage example

Including the language php after the first set of triple backticks will add syntax highlighting.

Hope that helps!

Thread Thread
 
asanchez profile image
Antonio Sánchez

Hi Andy, thanks a lot! I am not so experienced working with markdown. I will edit the post right now to do this.