Directories
¶
Path | Synopsis |
---|---|
0_exercises
|
|
When using channels as function parameters, you can specify if a channel is meant to only send or receive values.
|
When using channels as function parameters, you can specify if a channel is meant to only send or receive values. |
Go’s select lets you wait on multiple channel operations.
|
Go’s select lets you wait on multiple channel operations. |
Timeouts are important for programs that connect to external resources or that otherwise need to bound execution time.
|
Timeouts are important for programs that connect to external resources or that otherwise need to bound execution time. |
28_tests
|
|
42_random
|
|
*
|
* |
46_workers
|
|
48_queue
|
|
Go supports recursive functions.
|
Go supports recursive functions. |
Go supports recursive functions.
|
Go supports recursive functions. |
58_database
|
|
60_grpc
|
|
example_1/proto
Package main is a generated protocol buffer package.
|
Package main is a generated protocol buffer package. |
example_2/proto
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
example_3/proto
Package grpc_sample is a generated protocol buffer package.
|
Package grpc_sample is a generated protocol buffer package. |
example_4
Package service is a generated protocol buffer package.
|
Package service is a generated protocol buffer package. |
61_template
|
|
62_swagger
|
|
example_1/swagger
@APIVersion 1.0.0 @APITitle Users Service @APIDescription Users Service @Contact joaosoft@gmail.com @TermsOfServiceUrl @License BSD @LicenseUrl http://opensource.org/licenses/BSD-2-Clause
|
@APIVersion 1.0.0 @APITitle Users Service @APIDescription Users Service @Contact joaosoft@gmail.com @TermsOfServiceUrl @License BSD @LicenseUrl http://opensource.org/licenses/BSD-2-Clause |
64_go_news
|
|
67_reflection
|
|
70_patterns
|
|
6_observer_pattern/example_1
Package main serves as an example application that makes use of the observer pattern.
|
Package main serves as an example application that makes use of the observer pattern. |
7_strategy_pattern/example_1
Package main serves as an example application that makes use of the observer pattern.
|
Package main serves as an example application that makes use of the observer pattern. |
71_waitgroup
|
|
74_imperative_vs_functional
|
|
78_master_go_programing
|
|
1_go_basics/12_names_types_and_aliases
/////////////////////////////// Alias Declarations Go Playground: https://play.golang.org/p/bYzfoWGFWdd ///////////////////////////////
|
/////////////////////////////// Alias Declarations Go Playground: https://play.golang.org/p/bYzfoWGFWdd /////////////////////////////// |
1_go_basics/13_coding_challenges/1_variables/3
There are some errors in the following Go program.
|
There are some errors in the following Go program. |
1_go_basics/13_coding_challenges/1_variables/4
There are some errors in the following Go program.
|
There are some errors in the following Go program. |
1_go_basics/13_coding_challenges/2_constants/4
There are some errors in the following Go program.
|
There are some errors in the following Go program. |
1_go_basics/13_coding_challenges/2_constants/5
There are some errors in the following Go program.
|
There are some errors in the following Go program. |
1_go_basics/13_coding_challenges/3_package_fmt/2
Consider the following constant declaration: const x float64 = 1.422349587101
|
Consider the following constant declaration: const x float64 = 1.422349587101 |
1_go_basics/13_coding_challenges/3_package_fmt/3
package main
|
package main |
1_go_basics/13_coding_challenges/4_operators_and_conversions/2
Consider the following declarations:
|
Consider the following declarations: |
package main | |
1_go_basics/13_coding_challenges/4_operators_and_conversions/4
Create a Go program that computes how long does it take for the Sunlight to reach the Earth if we know that the distance from the Sun to Earth is 149.6 million km and the speed of light is 299,792,458 m / s
|
Create a Go program that computes how long does it take for the Sunlight to reach the Earth if we know that the distance from the Sun to Earth is 149.6 million km and the speed of light is 299,792,458 m / s |
1_go_basics/13_coding_challenges/4_operators_and_conversions/5
Write the correct logical operator (&&, || , !) inside the expression so that result1 will be false and result2 will be true.
|
Write the correct logical operator (&&, || , !) inside the expression so that result1 will be false and result2 will be true. |
1_go_basics/13_coding_challenges/5_named_types_and_aliases/2
There are some errors in the following Go program.
|
There are some errors in the following Go program. |
1. | |
1_go_basics/2_main
a package clause starts every source file main is a special name declaring an executable rather than a library (package)
|
a package clause starts every source file main is a special name declaring an executable rather than a library (package) |
2_program_flow_control/7_coding_challenges/1_for_and_if_statements/2
Change the code from the previous exercise and use the continue statement to print out all the numbers divisible by 7 between 1 and 50.
|
Change the code from the previous exercise and use the continue statement to print out all the numbers divisible by 7 between 1 and 50. |
2_program_flow_control/7_coding_challenges/1_for_and_if_statements/3
Change the code from the previous exercise and use the break statement to print out only the first 3 numbers divisible by 7 between 1 and 50.
|
Change the code from the previous exercise and use the break statement to print out only the first 3 numbers divisible by 7 between 1 and 50. |
2_program_flow_control/7_coding_challenges/1_for_and_if_statements/4
Using a for loop, an if statement and the logical and operator print out all the numbers between 1 and 500 that divisible both by 7 and 5.
|
Using a for loop, an if statement and the logical and operator print out all the numbers between 1 and 500 that divisible both by 7 and 5. |
2_program_flow_control/7_coding_challenges/1_for_and_if_statements/5
Using a for loop print out all the years from your birthday to current year.
|
Using a for loop print out all the years from your birthday to current year. |
2_program_flow_control/7_coding_challenges/1_for_and_if_statements/6
Consider the following Go
|
Consider the following Go |
3_arrays/3_coding_challenges/2
Consider the following array declaration: nums := []int{30, -1, -6, 90, -6} Write a Go program that counts the number of positive even numbers in the array.
|
Consider the following array declaration: nums := []int{30, -1, -6, 90, -6} Write a Go program that counts the number of positive even numbers in the array. |
3_arrays/3_coding_challenges/3
There are some errors in the following Go program.
|
There are some errors in the following Go program. |
81_generics
|
|
You can edit this code! Click here and start typing.
|
You can edit this code! Click here and start typing. |
You can edit this code! Click here and start typing.
|
You can edit this code! Click here and start typing. |
84_context
|
|
Click to show internal directories.
Click to hide internal directories.