Files

25 lines
619 B
Go
Raw Permalink Normal View History

2019-03-04 20:30:18 +03:00
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
2019-10-30 19:34:44 +03:00
// For more tutorials : https://learngoprogramming.com
// In-person training : https://www.linkedin.com/in/inancgumus/
// Follow me on twitter: https://twitter.com/inancgumus
2019-03-04 20:30:18 +03:00
package main
import (
"fmt"
2019-03-05 23:32:32 +03:00
"github.com/inancgumus/learngo/16-slices/exercises/23-limit-the-backing-array-sharing/solution/api"
2019-03-04 20:30:18 +03:00
)
func main() {
2019-08-22 21:21:26 +03:00
received := api.Read(0, 3)
2019-08-22 20:00:58 +03:00
2019-08-22 21:21:26 +03:00
received = append(received, []int{1, 3}...)
2019-03-04 20:30:18 +03:00
2019-08-18 12:59:50 +03:00
fmt.Println("api.temps :", api.All())
2019-08-22 21:21:26 +03:00
fmt.Println("main.received :", received)
2019-03-04 20:30:18 +03:00
}