| 
									
										
										
										
											2019-03-04 20:30:18 +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 ( | 
					
						
							|  |  |  | 	"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() { | 
					
						
							|  |  |  | 	temps := api.Read(0, 3) | 
					
						
							|  |  |  | 	temps = append(temps, []int{1, 3}...) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	fmt.Println("API's readings:", api.All()) | 
					
						
							|  |  |  | 	fmt.Println("Your readings :", temps) | 
					
						
							|  |  |  | } |