2018-11-13 17:43:25 +03:00
|
|
|
// For more tutorials: https://blog.learngoprogramming.com
|
|
|
|
|
//
|
|
|
|
|
// Copyright © 2018 Inanc Gumus
|
|
|
|
|
// Learn Go Programming Course
|
|
|
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
s "github.com/inancgumus/prettyslice"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2018-12-18 15:20:37 +03:00
|
|
|
s.PrintBacking = true
|
2018-11-13 17:43:25 +03:00
|
|
|
|
2018-12-18 15:20:37 +03:00
|
|
|
ages := []int{35, 15}
|
|
|
|
|
s.Show("ages", ages)
|
2018-11-13 17:43:25 +03:00
|
|
|
|
2018-12-18 15:20:37 +03:00
|
|
|
ages = append(ages, 5)
|
|
|
|
|
s.Show("append(ages, 5)", ages)
|
2018-11-13 17:43:25 +03:00
|
|
|
}
|