Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition
/ functions
Functions
795 in github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition
⨍
Functions
795
◇
Types & classes
269
Method
Register
(tags []string)
chapter11/discovery/exec_test.go:15
Method
Register
Register adds our service to consul
chapter11/discovery/operations.go:6
Function
RegisterGreeterServiceServer
(s *grpc.Server, srv GreeterServiceServer)
chapter7/grpc/greeter/greeter.pb.go:119
Function
RegisterKeyValueServer
(s *grpc.Server, srv KeyValueServer)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:156
Method
Reset
()
chapter7/twirp/rpc/greeter/greeter.pb.go:29
Method
Reset
()
chapter7/twirp/rpc/greeter/greeter.pb.go:74
Method
Reset
()
chapter7/grpc/greeter/greeter.pb.go:42
Method
Reset
()
chapter7/grpc/greeter/greeter.pb.go:65
Method
Reset
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:43
Method
Reset
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:66
Method
Reset
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:83
Method
Restore
Restore needed to satisfy the raft FSM interface
chapter11/consensus/fsm.go:33
Method
Rollback
()
chapter6/dbinterface/mocks_test.go:180
Method
Rollback
()
chapter6/dbinterface/mocks_test.go:186
Method
ServeHTTP
(resp http.ResponseWriter, req *http.Request)
chapter7/twirp/rpc/greeter/greeter.twirp.go:146
Method
Service
(service, tag string)
chapter11/discovery/exec_test.go:22
Method
Service
Service return a service
chapter11/discovery/operations.go:18
Method
ServiceDescriptor
()
chapter7/twirp/rpc/greeter/greeter.twirp.go:322
Method
ServiceDescriptor
ServiceDescriptor returns gzipped bytes describing the .proto file that this service was generated from. Once unzipped, the bytes can be unmarshalled
chapter7/twirp/rpc/greeter/greeter.twirp.go:360
Method
Set
(ctx context.Context, in *SetKeyValueRequest, opts ...grpc.CallOption)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:131
Method
Set
(context.Context, *SetKeyValueRequest)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:152
Method
Set
(ctx context.Context, key string, value interface{})
chapter13/firebase/client.go:37
Method
Set
Set will be used by the flag package
chapter2/flags/custom.go:25
Method
Set
Set mocks base method
chapter9/mockgen/internal/mocks.go:51
Method
Set
Set indicates an expected call of Set
chapter9/mockgen/internal/mocks.go:59
Method
SetToken
SetToken creates, truncates, then stores a token in a file
chapter7/oauthstore/filestorage.go:34
Method
Snapshot
Snapshot needed to satisfy the raft FSM interface
chapter11/consensus/fsm.go:28
Method
Stmt
(_param0 *sql.Stmt)
chapter6/dbinterface/mocks_test.go:190
Method
Stmt
(arg0 interface{})
chapter6/dbinterface/mocks_test.go:196
Method
String
()
chapter7/twirp/rpc/greeter/greeter.pb.go:75
Method
String
()
chapter7/grpc/greeter/greeter.pb.go:43
Method
String
()
chapter7/grpc/greeter/greeter.pb.go:66
Method
String
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:44
Method
String
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:67
Method
Successes
()
chapter12/asynckafka/producer/mocks_test.go:76
Function
TestAPIClient_GetGoogle
(t *testing.T)
chapter7/rest/client_test.go:40
Function
TestAPITransport_RoundTrip
(t *testing.T)
chapter7/rest/transport_test.go:8
Function
TestAddItem
(t *testing.T)
chapter14/fastweb/items_test.go:8
Function
TestAddItems
(t *testing.T)
chapter14/fastweb/handlers_test.go:26
Function
TestAddMoviesFromText
(t *testing.T)
chapter1/csvformat/read_csv_test.go:47
Function
TestApex
(t *testing.T)
chapter4/structured/apex_test.go:55
Function
TestApplyMiddleware
(t *testing.T)
chapter8/middleware/middleware_test.go:11
Function
TestAtomicCounter_Add
(t *testing.T)
chapter14/bench/atomic_test.go:5
Function
TestAtomicCounter_Read
(t *testing.T)
chapter14/bench/atomic_test.go:29
Function
TestAuthenticate
(t *testing.T)
chapter13/firebase/auth_test.go:8
Function
TestBase64Example
(t *testing.T)
chapter3/encoding/base64_test.go:5
Function
TestBase64ExampleEncoder
(t *testing.T)
chapter3/encoding/base64_test.go:21
Function
TestBaseEncoding
(t *testing.T)
chapter3/nulls/base_test.go:5
Function
TestBasicAuth
(t *testing.T)
chapter7/decorator/middleware_test.go:26
Function
TestBasicErrors
(t *testing.T)
chapter4/basicerrors/basicerrors_test.go:5
Function
TestBooks_ToCSV
(t *testing.T)
chapter1/csvformat/write_csv_test.go:9
Function
TestBuffer
(t *testing.T)
chapter1/bytestrings/buffer_test.go:8
Function
TestCapitalizer
(t *testing.T)
chapter1/filedirs/files_test.go:9
Function
TestCapitalizerExample
(t *testing.T)
chapter1/filedirs/files_test.go:48
Function
TestCardType
(t *testing.T)
chapter12/graphql/cards/type_test.go:5
Function
TestCatchSig
(t *testing.T)
chapter2/signals/signals_test.go:9
Function
TestCheckType
(t *testing.T)
chapter3/dataconv/interfaces_test.go:5
Function
TestClient_AsyncGet
(t *testing.T)
chapter7/async/config_test.go:26
Function
TestColorText_String
(t *testing.T)
chapter2/ansicolor/color_test.go:5
Function
TestConfig
(t *testing.T)
chapter11/consensus/config_test.go:5
Function
TestConfig_Client
(t *testing.T)
chapter7/oauthstore/config_test.go:61
Function
TestConfig_Exchange
(t *testing.T)
chapter7/oauthstore/config_test.go:12
Function
TestConfig_GetMessage
(t *testing.T)
chapter2/flags/flags_test.go:72
Function
TestConfig_Setup
(t *testing.T)
chapter2/flags/flags_test.go:46
Function
TestConfig_TokenSource
(t *testing.T)
chapter7/oauthstore/config_test.go:37
Function
TestController_DoOps
(t *testing.T)
chapter7/client/store_test.go:5
Function
TestController_GetHandler
(t *testing.T)
chapter8/grpcjson/http/get_test.go:13
Function
TestController_GetValue
(t *testing.T)
chapter8/controllers/get_test.go:9
Function
TestController_Process
(t *testing.T)
chapter8/validation/process_test.go:11
Function
TestController_Set
(t *testing.T)
chapter9/mockgen/exec_test.go:11
Function
TestController_SetHandler
(t *testing.T)
chapter8/grpcjson/http/set_test.go:12
Function
TestController_SetValue
(t *testing.T)
chapter8/controllers/post_test.go:9
Function
TestController_handle
(t *testing.T)
chapter13/appengine/controller_test.go:14
Function
TestController_queryMessages
(t *testing.T)
chapter13/appengine/message_test.go:45
Function
TestController_storeMessage
(t *testing.T)
chapter13/appengine/message_test.go:11
Function
TestConvertPenniesToDollarString
(t *testing.T)
chapter3/currency/pennies_test.go:5
Function
TestConvertStringDollarsToPennies
(t *testing.T)
chapter3/currency/dollars_test.go:5
Function
TestCopy
(t *testing.T)
chapter1/interfaces/interfaces_test.go:9
Function
TestCopyResponse
(t *testing.T)
chapter8/proxy/process_test.go:40
Function
TestCountTheWays_Set
(t *testing.T)
chapter2/flags/flags_test.go:23
Function
TestCountTheWays_String
(t *testing.T)
chapter2/flags/flags_test.go:5
Function
TestCounterHandler
(t *testing.T)
chapter11/metrics/handler_test.go:9
Function
TestCounter_Add
(t *testing.T)
chapter14/bench/lock_test.go:8
Function
TestCounter_Read
(t *testing.T)
chapter14/bench/lock_test.go:34
Function
TestCoverage
(t *testing.T)
chapter9/coverage/coverage_test.go:5
Function
TestCrawl
(t *testing.T)
chapter10/waitgroup/process_test.go:8
Function
TestCrawlError_Add
(t *testing.T)
chapter10/waitgroup/tasks_test.go:30
Function
TestCrawlError_Error
(t *testing.T)
chapter10/waitgroup/tasks_test.go:54
Function
TestCrawlError_Valid
(t *testing.T)
chapter10/waitgroup/tasks_test.go:79
Function
TestCreate
(t *testing.T)
chapter6/database/create_test.go:11
Function
TestCreate
(t *testing.T)
chapter6/dbinterface/create_test.go:11
Function
TestCreateTemplate
(t *testing.T)
chapter1/templates/template_files_test.go:6
Function
TestCustomError_Error
(t *testing.T)
chapter4/basicerrors/custom_test.go:5
Function
TestCustomHandler_HandleLog
(t *testing.T)
chapter4/structured/apex_test.go:26
Function
TestDeSerializeStructStrings
(t *testing.T)
chapter3/tags/deserialize_test.go:5
Function
TestDebug
(t *testing.T)
chapter4/global/global_test.go:64
Function
TestDecorate
(t *testing.T)
chapter7/decorator/decorator_test.go:38
Function
TestDefaultGetGolang
(t *testing.T)
chapter7/client/exec_test.go:29
Function
TestDispatch
(t *testing.T)
chapter10/pool/worker_test.go:8
Function
TestDoOps
(t *testing.T)
chapter7/client/exec_test.go:8
← previous
next →
401–500 of 795, ranked by callers