1.

What Is Slice In Go?

Answer»

GO Slice is an abstraction over Go Array. As Go Array allows you to define type of variables that can hold several data items of the same kind but it do not PROVIDE any inbuilt METHOD to increase size of it DYNAMICALLY or get a sub-array of its own. Slices covers this limitation. It provides many utility functions required on Array and is widely used in Go PROGRAMMING.

Go Slice is an abstraction over Go Array. As Go Array allows you to define type of variables that can hold several data items of the same kind but it do not provide any inbuilt method to increase size of it dynamically or get a sub-array of its own. Slices covers this limitation. It provides many utility functions required on Array and is widely used in Go programming.



Discussion

No Comment Found