| 
									
										
										
										
											2019-10-30 19:34:44 +03:00
										 |  |  | // 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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-05 15:02:03 +03:00
										 |  |  | package main | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							|  |  |  | // EXERCISE: Fix | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //  1. Uncomment the code | 
					
						
							| 
									
										
										
										
											2018-12-05 19:48:28 +03:00
										 |  |  | // | 
					
						
							| 
									
										
										
										
											2018-12-05 15:02:03 +03:00
										 |  |  | //  2. And fix the problems | 
					
						
							| 
									
										
										
										
											2018-12-05 19:48:28 +03:00
										 |  |  | // | 
					
						
							| 
									
										
										
										
											2018-12-05 15:02:03 +03:00
										 |  |  | //  3. BONUS: Simplify the code | 
					
						
							|  |  |  | // --------------------------------------------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func main() { | 
					
						
							|  |  |  | 	// var names [3]string = [3]string{ | 
					
						
							|  |  |  | 	// 	"Einstein" "Shepard" | 
					
						
							|  |  |  | 	// 	"Tesla" | 
					
						
							|  |  |  | 	// } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// var books [5]string = [5]string{ | 
					
						
							|  |  |  | 	// 	"Kafka's Revenge", | 
					
						
							|  |  |  | 	// 	"Stay Golden", | 
					
						
							|  |  |  | 	// 	"", | 
					
						
							|  |  |  | 	// 	"", | 
					
						
							|  |  |  | 	// 	"" | 
					
						
							|  |  |  | 	// } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// fmt.Printf("%q\n", names) | 
					
						
							|  |  |  | 	// fmt.Printf("%q\n", books) | 
					
						
							|  |  |  | } |