Codiga Snippets, page 38
Full list of public snippets in Codiga
Name | Language | Author | Uses |
---|---|---|---|
method declaration | Go |
| 1 |
init function | Go |
| 0 |
main function | Go |
| 0 |
table driven test | Go |
| 1 |
benchmark function | Go |
| 5 |
example function | Go |
| 1 |
test function | Go |
| 3 |
test main | Go |
| 1 |
defer statement | Go |
| 2 |
goroutine anonymous function | Go |
| 0 |
goroutine function | Go |
| 2 |
http ListenAndServe | Go |
| 1 |
http Serve | Go |
| 0 |
http Error | Go |
| 0 |
http Redirect | Go |
| 1 |
http handler declaration | Go |
| 2 |
http HandleFunc | Go |
| 1 |
panic( ) | Go |
| 0 |
http ResponseWriter *Request | Go |
| 14 |
new( ) | Go |
| 1 |
t Logf variable content | Go |
| 0 |
make( ) | Go |
| 1 |
t Log | Go |
| 1 |
t Logf | Go |
| 0 |
log Printf | Go |
| 0 |
log variable content | Go |
| 0 |
log Println | Go |
| 0 |
fmt Println | Go |
| 3 |
fmt Printf | Go |
| 1 |
if else statement | Go |
| 0 |
if err != nil | Go |
| 1 |
else branch | Go |
| 0 |
empty interface | Go |
| 0 |
if statement | Go |
| 0 |
map declaration | Go |
| 4 |
for range statement | Go |
| 0 |
channel declaration | Go |
| 5 |
for statement | Go |
| 5 |
select statement | Go |
| 1 |
case clause | Go |
| 1 |
switch statement | Go |
| 2 |
variable declaration | Go |
| 6 |
package main and main function | Go |
| 3 |
function declaration | Go |
| 7 |
type struct declaration | Go |
| 8 |
type function declaration | Go |
| 2 |
type interface declaration | Go |
| 0 |
multiple constants | Go |
| 7 |
multiple imports | Go |
| 0 |
single constant | Go |
| 2 |