Working with Slices in Go(golang)

//Initiaing the slice to have the integers 1 ,2 3 in it.
mySlice := [ ]int{1, 2, 3}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

10 React fundamental concepts that you need to know.

What is Render in React

How to Install Jmeter in Ubuntu 20.04

How to get resources from paginated REST API using recursion and JavaScript Promises

What is reflow and how it works? This simple question explains all.

A note to the developer I was 5 years ago

Build a Sticky Table Header with React Hooks

6 EASY STEPS TO BUILD A TO-DO APP WITH JAVA-SCRIPT

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sean Dever

Sean Dever

More from Medium

Use pprof to view go program stack traces

Finding if element is present in a slice: Golang

The main idea of ​​implementing a binary tree with Golang

Hacking sum types with Go generics