Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarioCarrion/videos
/ functions
Functions
638 in github.com/MarioCarrion/videos
⨍
Functions
638
◇
Types & classes
185
↓ 1 callers
Method
Stop
()
2025/go-1-24-0/05-testing/example.go:14
↓ 1 callers
Method
Stopped
()
2025/go-1-24-0/05-testing/example.go:20
↓ 1 callers
Method
Use
Use applies the given middleware to all the "users" service endpoints.
2022/01/14/gen/users/endpoints.go:31
↓ 1 callers
Function
ValidateCreateRequestBody
ValidateCreateRequestBody runs the validations defined on CreateRequestBody
2022/01/14/gen/http/users/server/types.go:72
↓ 1 callers
Function
ValidateCreateResponseBody
ValidateCreateResponseBody runs the validations defined on CreateResponseBody
2022/01/14/gen/http/users/client/types.go:74
↓ 1 callers
Function
ValidateUserResponse
ValidateUserResponse runs the validations defined on UserResponse
2022/01/14/gen/http/users/client/types.go:100
↓ 1 callers
Function
Value
(str string)
2025/three-things-i-dont-like/03-switch-statement/main.go:63
↓ 1 callers
Function
WithAddr
(addr string)
2021/11/05/main.go:19
↓ 1 callers
Function
WithReadTimeout
(t time.Duration)
2021/11/05/main.go:26
↓ 1 callers
Function
WithWriteTimeout
(t time.Duration)
2021/11/05/main.go:37
↓ 1 callers
Function
buildUpsertQueryPostgres
buildUpsertQueryPostgres builds a SQL statement string using the upsertData provided.
2021/02/05-go-database-postgresql-part-2/models/psql_upsert.go:15
↓ 1 callers
Function
buildUpsertQueryPostgres
buildUpsertQueryPostgres builds a SQL statement string using the upsertData provided.
2021/02/09-go-database-postgresql-part-3/models/psql_upsert.go:15
↓ 1 callers
Method
doAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
2021/02/05-go-database-postgresql-part-2/models/names.go:265
↓ 1 callers
Method
doAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
2021/02/09-go-database-postgresql-part-3/models/names.go:265
↓ 1 callers
Method
doAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
2021/02/05-go-database-postgresql-part-2/models/names.go:295
↓ 1 callers
Method
doAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
2021/02/09-go-database-postgresql-part-3/models/names.go:295
↓ 1 callers
Method
doAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
2021/02/05-go-database-postgresql-part-2/models/names.go:325
↓ 1 callers
Method
doAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
2021/02/09-go-database-postgresql-part-3/models/names.go:325
↓ 1 callers
Method
doBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
2021/02/05-go-database-postgresql-part-2/models/names.go:205
↓ 1 callers
Method
doBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
2021/02/09-go-database-postgresql-part-3/models/names.go:205
↓ 1 callers
Method
doBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
2021/02/05-go-database-postgresql-part-2/models/names.go:220
↓ 1 callers
Method
doBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
2021/02/09-go-database-postgresql-part-3/models/names.go:220
↓ 1 callers
Method
doBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
2021/02/05-go-database-postgresql-part-2/models/names.go:250
↓ 1 callers
Method
doBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
2021/02/09-go-database-postgresql-part-3/models/names.go:250
↓ 1 callers
Function
doHTTP
(scheme, host string, timeout int, debug bool)
2022/01/14/cmd/http-cli/http.go:12
↓ 1 callers
Function
doWork
(id int)
2021/10/01/01-basic/main.go:72
↓ 1 callers
Function
errGroup
(ctx context.Context)
2021/09/02/02-context/main.go:26
↓ 1 callers
Function
errGroupWithErrChannel
()
2021/09/02/01-sync-read/main.go:20
↓ 1 callers
Function
errorHandler
errorHandler returns a function that writes and logs the given error. The function also writes and logs the error unique ID so that it's possible to c
2022/01/14/cmd/http/http.go:106
↓ 1 callers
Function
file_user_v1_user_proto_init
()
2022/02/17/gen/go/user/v1/user.pb.go:128
↓ 1 callers
Function
file_user_v1_user_proto_init
()
2022/02/24/gen/go/user/v1/user.pb.go:280
↓ 1 callers
Function
file_user_v1_user_proto_rawDescGZIP
()
2022/02/17/gen/go/user/v1/user.pb.go:108
↓ 1 callers
Function
handleHTTPServer
handleHTTPServer starts configures and starts a HTTP server on the given URL. It shuts down the server if any error is received in the error channel.
2022/01/14/cmd/http/http.go:21
↓ 1 callers
Function
hello
()
2021/08/12/introductions-concurrency-patterns/01-goroutines/main.go:9
↓ 1 callers
Function
httpUsageCommands
()
2022/01/14/cmd/http-cli/http.go:33
↓ 1 callers
Function
httpUsageExamples
()
2022/01/14/cmd/http-cli/http.go:37
↓ 1 callers
Function
insertUsers
(db *sql.DB, users []User)
2021/11/26/stdlib/main.go:51
↓ 1 callers
Function
insertsUsers
(conn *pgx.Conn)
2021/12/02/pgx/main.go:81
↓ 1 callers
Function
insertsUsers
(conn *pgx.Conn)
2021/12/02/stdlib/main.go:40
↓ 1 callers
Function
listenForWork
()
2021/10/01/01-basic/main.go:21
↓ 1 callers
Function
marshalUsersUserToUserResponse
marshalUsersUserToUserResponse builds a value of type *UserResponse from a value of type *users.User.
2022/01/14/gen/http/users/server/encode_decode.go:71
↓ 1 callers
Function
merge2
(cs ...<-chan []string)
2021/08/19/01-concurrency-patterns-fan-in/main.go:72
↓ 1 callers
Function
newConn
()
2021/10/22/02-preventing-sql-injection-pgx/main.go:44
↓ 1 callers
Function
newConn
()
2021/10/22/01-sql-injection-pgx/main.go:46
↓ 1 callers
Function
newConn
()
2021/10/22/03-dynamic-queries-pgx/main.go:52
↓ 1 callers
Function
newConn
()
2021/12/02/pgx/main.go:108
↓ 1 callers
Function
newConn
()
2021/12/02/stdlib/main.go:82
↓ 1 callers
Function
newConn
(tb testing.TB)
2025/three-things-i-dont-like/02-test-dependencies/with-dependencies/user_test.go:47
↓ 1 callers
Function
newConn
(tb testing.TB)
2025/three-things-i-dont-like/02-test-dependencies/without-dependencies/tests/user_test.go:47
↓ 1 callers
Function
newDB
()
2021/10/22/01-sql-injection-sql/main.go:46
↓ 1 callers
Function
newDB
()
2021/10/22/02-preventing-sql-injection-sql/main.go:48
↓ 1 callers
Function
newDB
()
2021/10/22/03-dynamic-queries-sql/main.go:53
↓ 1 callers
Function
newDB
()
2021/11/26/stdlib/main.go:74
↓ 1 callers
Function
newMessage
()
2022/07/08/producer/main.go:37
↓ 1 callers
Function
newReader
(file string)
2021/09/02/01-sync-read/main.go:106
↓ 1 callers
Function
read
(file string)
2021/09/02/02-context/main.go:68
↓ 1 callers
Function
readCSV
Read values
2021/09/10/01-pipeline/main.go:31
↓ 1 callers
Function
readCSV
(file string)
2021/08/19/02-concurrency-patterns-fan-out/main.go:95
↓ 1 callers
Function
readWithErrChannel
(file string)
2021/09/02/01-sync-read/main.go:64
↓ 1 callers
Method
recordInvocation
(key string, args []interface{})
2020/11/24-go-tools-counterfeiter/librarytesting/fake_book_details_store.gen.go:104
↓ 1 callers
Method
recordInvocation
(key string, args []interface{})
2020/11/24-go-tools-counterfeiter/librarytesting/fake_book_store.gen.go:106
↓ 1 callers
Function
sanitize
Remove "invalid" records
2021/09/10/01-pipeline/main.go:59
↓ 1 callers
Function
titleize
Modify received values
2021/09/10/01-pipeline/main.go:79
↓ 1 callers
Function
unmarshalUserResponseToUsersUser
unmarshalUserResponseToUsersUser builds a value of type *users.User from a value of type *UserResponse.
2022/01/14/gen/http/users/client/encode_decode.go:156
↓ 1 callers
Function
waitGroups
()
2021/09/02/01-sync/main.go:29
↓ 1 callers
Function
waitToExit
()
2021/10/01/01-basic/main.go:56
↓ 1 callers
Function
waitToExit
()
2021/10/01/02-cancellation/main.go:27
Function
AddNameHook
AddNameHook registers your hook function for all future operations.
2021/02/05-go-database-postgresql-part-2/models/names.go:340
Function
AddNameHook
AddNameHook registers your hook function for all future operations.
2021/02/09-go-database-postgresql-part-3/models/names.go:340
Method
All
All returns all Name records from the query.
2021/02/05-go-database-postgresql-part-2/models/names.go:385
Method
All
All returns all Name records from the query.
2021/02/09-go-database-postgresql-part-3/models/names.go:385
Method
All
All implements all.
2022/01/14/users.go:28
Method
All
All calls the "all" endpoint of the "users" service.
2022/01/14/gen/users/client.go:41
Function
AllUsersPath
AllUsersPath returns the URL path to the users service all HTTP endpoint.
2022/01/14/gen/http/users/server/paths.go:16
Function
BenchmarkBytesBuffer
(b *testing.B)
2021/12/07/benchmark_test.go:23
Function
BenchmarkConcat
(b *testing.B)
2021/12/07/benchmark_test.go:10
Function
BenchmarkFmtSprintf
(b *testing.B)
2021/12/07/benchmark_test.go:16
Function
BenchmarkStringsBuilder
(b *testing.B)
2021/12/07/benchmark_test.go:31
Function
BuildCreatePayload
BuildCreatePayload builds the payload for the users create endpoint from CLI flags.
2022/01/14/gen/http/users/client/cli.go:21
Function
Calculate
(value int64)
2025/go-1-25-0/04-synctest/example.go:25
Function
ConcatenateSlice
- ConcatenateSlice ...
2021/01/23-go-package-equality-google-go-cmp/sum.go:35
Method
Count
Count returns the count of all Name records in the query.
2021/02/05-go-database-postgresql-part-2/models/names.go:405
Method
Count
Count returns the count of all Name records in the query.
2021/02/09-go-database-postgresql-part-3/models/names.go:405
Method
Create
(arg1 string, arg2 library.Details)
2020/11/24-go-tools-counterfeiter/librarytesting/fake_book_store.gen.go:29
Method
Create
Create implements create.
2022/01/14/users.go:21
Method
Create
Create calls the "create" endpoint of the "users" service.
2022/01/14/gen/users/client.go:31
Method
CreateCallCount
()
2020/11/24-go-tools-counterfeiter/librarytesting/fake_book_store.gen.go:49
Method
CreateCalls
(stub func(string, library.Details) (library.Book, error))
2020/11/24-go-tools-counterfeiter/librarytesting/fake_book_store.gen.go:55
Method
CreateReturnsOnCall
(i int, result1 library.Book, result2 error)
2020/11/24-go-tools-counterfeiter/librarytesting/fake_book_store.gen.go:78
Function
CreateUsersPath
CreateUsersPath returns the URL path to the users service create HTTP endpoint.
2022/01/14/gen/http/users/server/paths.go:11
Method
Delete
Delete deletes a single Name record with an executor. Delete will match against the primary key column to find the record to delete.
2021/02/09-go-database-postgresql-part-3/models/names.go:791
Method
DeleteAll
DeleteAll deletes all matching rows.
2021/02/05-go-database-postgresql-part-2/models/names.go:826
Method
DeleteAll
DeleteAll deletes all rows in the slice, using an executor.
2021/02/05-go-database-postgresql-part-2/models/names.go:847
Method
DeleteAll
DeleteAll deletes all matching rows.
2021/02/09-go-database-postgresql-part-3/models/names.go:826
Method
DeleteAll
DeleteAll deletes all rows in the slice, using an executor.
2021/02/09-go-database-postgresql-part-3/models/names.go:847
Method
Descriptor
Deprecated: Use User.ProtoReflect.Descriptor instead.
2022/02/17/gen/go/user/v1/user.pb.go:61
Method
Descriptor
Deprecated: Use Address.ProtoReflect.Descriptor instead.
2022/02/24/gen/go/user/v1/user.pb.go:196
Method
EQ
(x string)
2021/02/05-go-database-postgresql-part-2/models/names.go:59
Method
EQ
(x null.String)
2021/02/05-go-database-postgresql-part-2/models/names.go:75
Method
EQ
(x types.StringArray)
2021/02/05-go-database-postgresql-part-2/models/names.go:98
← previous
next →
201–300 of 638, ranked by callers