This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| // Print engineer names that is still junior | |
| func printEngineerName(names []string, isJunior bool) { | |
| if !isJunior { | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func printEngineerName(names []string) { | |
| for index, engineer := range names { | |
| fmt.Printf("Some string at index %v with value %v", index, engineer) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| juniorEngineers := []string{"John", "Doe"} | |
| for index, engineer := range juniorEngineers { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func printNames() { | |
| names := []string{"John", "Doe"} | |
| for index, name := range names { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func names() { | |
| names := []string{"John", "Doe"} | |
| for index, name := range names { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| names := []string{"John", "Doe"} | |
| for index, name := range names { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| l := []string{"John", "Doe"} | |
| for i, v := range l { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.7' | |
| networks: | |
| <network_name>: | |
| driver: <network's drive type> | |
| services: | |
| <service_name>: | |
| image: <image_name>:<image_version> | |
| hostname: <hostname> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Car { | |
| String get type { | |
| return 'Hatchback'; | |
| } | |
| } | |
| String carFactory() { | |
| return Car().type; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Future<String> asyncFunction(int functionID) async { | |
| return 'This will be run asynchronously $functionID'; | |
| } | |
| String standardFunction(int functionID) { | |
| return 'This will be run synchronously $functionID'; | |
| } | |
| void startFunction() { | |
| for (int i = 0; i < 10; i++) { |