25 lines
619 B
Go
25 lines
619 B
Go
// Copyright © 2018 Inanc Gumus
|
|
// Learn Go Programming Course
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
//
|
|
// For more tutorials : https://learngoprogramming.com
|
|
// In-person training : https://www.linkedin.com/in/inancgumus/
|
|
// Follow me on twitter: https://twitter.com/inancgumus
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/inancgumus/learngo/16-slices/exercises/23-limit-the-backing-array-sharing/solution/api"
|
|
)
|
|
|
|
func main() {
|
|
received := api.Read(0, 3)
|
|
|
|
received = append(received, []int{1, 3}...)
|
|
|
|
fmt.Println("api.temps :", api.All())
|
|
fmt.Println("main.received :", received)
|
|
}
|