Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/darjun/go-daily-lib
/ functions
Functions
1,635 in github.com/darjun/go-daily-lib
⨍
Functions
1,635
◇
Types & classes
445
↓ 3 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
nethttp/middleware/main.go:20
↓ 3 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
nethttp/middleware/mymux1/main.go:20
↓ 3 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
nethttp/middleware/mymux2/main.go:88
↓ 3 callers
Method
_resume
()
ebiten/12-wasm/wasm_exec.js:534
↓ 3 callers
Function
badRouteError
badRouteError is used when the twirp server cannot route a request
twirp/get-started/proto/echo.twirp.go:665
↓ 3 callers
Function
callError
Call twirp.ServerHooks.Error if the hook is available
twirp/get-started/proto/echo.twirp.go:834
↓ 3 callers
Function
callResponseSent
Call twirp.ServerHooks.ResponseSent if the hook is available
twirp/get-started/proto/echo.twirp.go:826
↓ 3 callers
Function
check
(e *casbin.Enforcer, sub, obj, act string)
casbin/function/built-in/main.go:10
↓ 3 callers
Function
isHTTPRedirect
(status int)
twirp/get-started/proto/echo.twirp.go:594
↓ 3 callers
Function
o
(i)
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 3 callers
Function
randomPoints
(n int)
plot/get-started/main.go:38
↓ 3 callers
Function
testToRomanCases
(cases []toRomanCase, t *testing.T)
testing/roman_test/roman_test.go:88
↓ 3 callers
Function
wrapper
(i int, wg *sync.WaitGroup)
ants/options/panic/main.go:11
↓ 3 callers
Function
wrapper
(i int, wg *sync.WaitGroup)
ants/options/panic/custom/main.go:12
↓ 3 callers
Function
writeError
writeError writes Twirp errors in the response and triggers hooks.
twirp/get-started/proto/echo.twirp.go:395
↓ 2 callers
Function
$
(e,t)
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
$
(e,t)
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Method
Appear
()
wire/struct-provider/main.go:26
↓ 2 callers
Method
Appear
()
wire/bind/main.go:26
↓ 2 callers
Method
Appear
()
wire/provider-set/main.go:30
↓ 2 callers
Function
CheckCollision
CheckCollision 两个物体之间是否碰撞
ebiten/10-collision/collision.go:4
↓ 2 callers
Function
CheckCollision
CheckCollision 两个物体之间是否碰撞
ebiten/11-pack/collision.go:4
↓ 2 callers
Method
Close
()
rpc/servecodec/server/main.go:62
↓ 2 callers
Method
Code
()
twirp/get-started/proto/echo.twirp.go:653
↓ 2 callers
Method
CreateClients
(server string)
jsonrpc/zookeeper/client/proxy.go:68
↓ 2 callers
Function
ExecuteCommand
(name string, subname string, args ...string)
cobra/get-started/cmd/helpers.go:11
↓ 2 callers
Function
GetSessionUser
(r *http.Request)
gorilla/sessions/auth/main.go:25
↓ 2 callers
Function
GetSessionUser
(r *http.Request)
gorilla/sessions/redis/main.go:27
↓ 2 callers
Method
Handler
(msg *message.Message)
watermill/router/main.go:57
↓ 2 callers
Function
InitMission
(name string)
wire/get-started/after/wire.go:7
↓ 2 callers
Function
NewAlien
(cfg *Config)
ebiten/10-collision/alien.go:16
↓ 2 callers
Function
NewAlien
(cfg *Config)
ebiten/11-pack/alien.go:18
↓ 2 callers
Function
NewAlien
(cfg *Config)
ebiten/9-alien/alien.go:19
↓ 2 callers
Function
NewMission
()
wire/struct-field/main.go:20
↓ 2 callers
Function
NewMonster
()
wire/struct-provider/main.go:9
↓ 2 callers
Function
NewMonster
()
wire/provider-set/main.go:9
↓ 2 callers
Function
NewPlayer
(name string)
wire/struct-provider/main.go:17
↓ 2 callers
Function
NewPlayer
(name string)
wire/bind/main.go:13
↓ 2 callers
Function
NewPlayer
(name string)
wire/provider-set/main.go:17
↓ 2 callers
Function
NewUser
(name string, age int)
dig/named-value/main.go:14
↓ 2 callers
Function
PrintState
(b *bitset.BitSet)
bitset/farmer-across-river2/main.go:80
↓ 2 callers
Function
SaveSessionUser
(w http.ResponseWriter, r *http.Request, u *User)
gorilla/sessions/auth/main.go:36
↓ 2 callers
Function
SaveSessionUser
(w http.ResponseWriter, r *http.Request, u *User)
gorilla/sessions/redis/main.go:38
↓ 2 callers
Method
Speak
()
reflect/interface/main.go:6
↓ 2 callers
Method
ToLower
(s string)
reflect/http-rpc/main.go:24
↓ 2 callers
Method
Validate
()
ozzo-validation/validatable/main.go:17
↓ 2 callers
Method
Validate
()
ozzo-validation/iterable/main.go:17
↓ 2 callers
Method
Validate
()
ozzo-validation/conditional/main.go:15
↓ 2 callers
Function
Z
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
Z
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Function
applyMiddlewares
(handler http.Handler, middlewares ...Middleware)
nethttp/middleware/main.go:61
↓ 2 callers
Function
applyMiddlewares
(handler http.Handler, middlewares ...Middleware)
nethttp/middleware/mymux1/main.go:61
↓ 2 callers
Function
broadcast
(name string, in interface{})
gotalk/websocket-chat/server.go:80
↓ 2 callers
Function
callClientError
(ctx context.Context, h *twirp.ClientHooks, err twirp.Error)
twirp/get-started/proto/echo.twirp.go:855
↓ 2 callers
Function
callClientRequestPrepared
(ctx context.Context, h *twirp.ClientHooks, req *http.Request)
twirp/get-started/proto/echo.twirp.go:848
↓ 2 callers
Function
callClientResponseReceived
(ctx context.Context, h *twirp.ClientHooks)
twirp/get-started/proto/echo.twirp.go:841
↓ 2 callers
Function
callRequestRouted
Call twirp.ServerHooks.RequestRouted if the hook is available
twirp/get-started/proto/echo.twirp.go:810
↓ 2 callers
Function
callResponsePrepared
Call twirp.ServerHooks.ResponsePrepared if the hook is available
twirp/get-started/proto/echo.twirp.go:818
↓ 2 callers
Function
check
(e *casbin.Enforcer, sub, domain, obj, act string)
casbin/rbac/domain/main.go:10
↓ 2 callers
Function
de
(e,t,r)
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
de
(e,t,r)
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Function
elasped
(h func(w http.ResponseWriter, r *http.Request))
negroni/introduction/middleware/main.go:9
↓ 2 callers
Function
ensurePanicResponses
for github.com/pkg/errors ensurePanicResponses makes sure that rpc methods causing a panic still result in a Twirp Internal error response (status 500
twirp/get-started/proto/echo.twirp.go:616
↓ 2 callers
Function
errorFromResponse
errorFromResponse builds a twirp.Error from a non-200 HTTP response. If the response has a valid serialized Twirp error, then it's returned. If not, t
twirp/get-started/proto/echo.twirp.go:519
↓ 2 callers
Function
fetchMessagesInRoom
(roomName)
gotalk/websocket-chat/main.js:160
↓ 2 callers
Function
file_echo_proto_rawDescGZIP
()
twirp/get-started/proto/echo.pb.go:140
↓ 2 callers
Function
findRoom
(name string)
gotalk/websocket-chat/server.go:88
↓ 2 callers
Function
getComposerMessage
()
gotalk/websocket-chat/main.js:203
↓ 2 callers
Method
init
()
ebiten/10-collision/game.go:54
↓ 2 callers
Method
init
()
ebiten/11-pack/game.go:54
↓ 2 callers
Function
inspectFunc
(name string, f interface{})
reflect/inspect/main.go:74
↓ 2 callers
Function
inspectSliceArray
(sa interface{})
reflect/inspect/main.go:55
↓ 2 callers
Function
inspectStruct
(u interface{})
reflect/inspect/main.go:23
↓ 2 callers
Function
l
(e,t)
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
l
(e,t)
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Function
malformedRequestError
malformedRequestError is used when the twirp server cannot unmarshal a request
twirp/get-started/proto/echo.twirp.go:660
↓ 2 callers
Function
n
(i)
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
n
(i)
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Function
newRequest
newRequest makes an http.Request from a client, adding common headers.
twirp/get-started/proto/echo.twirp.go:470
↓ 2 callers
Method
outOfScreen
(cfg *Config)
ebiten/10-collision/alien.go:41
↓ 2 callers
Method
outOfScreen
(cfg *Config)
ebiten/11-pack/alien.go:43
↓ 2 callers
Function
processErr
(err error)
validator/error/main.go:9
↓ 2 callers
Method
queryRow
(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{})
sqlc/prepared-queries/db/db.go:87
↓ 2 callers
Function
registerMethods
(objName string, o interface{})
reflect/http-rpc/main.go:62
↓ 2 callers
Function
s
(i)
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
s
(i)
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Function
showListItems
(list, makefun, replaceExisting, items)
gotalk/websocket-chat/main.js:96
↓ 2 callers
Function
showMessages
(replaceExisting, messages)
gotalk/websocket-chat/main.js:125
↓ 2 callers
Function
t
()
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
t
()
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Function
twirpErrorFromIntermediary
twirpErrorFromIntermediary maps HTTP errors from non-twirp sources to twirp errors. The mapping is similar to gRPC: https://github.com/grpc/grpc/blob/
twirp/get-started/proto/echo.twirp.go:562
↓ 2 callers
Function
ue
(e,t,r)
gotalk/websocket-chat/gotalk/gotalk.js:1
↓ 2 callers
Function
ue
(e,t,r)
gotalk/websocket/gotalk/gotalk.js:1
↓ 2 callers
Function
urlBase
urlBase helps ensure that addr specifies a scheme. If it is unparsable as a URL, it returns addr unchanged.
twirp/get-started/proto/echo.twirp.go:436
↓ 2 callers
Function
validateUser
(u *User)
ozzo-validation/struct/main.go:16
↓ 2 callers
Function
validateUser
(u map[string]interface{})
ozzo-validation/map/main.go:10
↓ 2 callers
Function
withoutRedirects
withoutRedirects makes sure that the POST request can not be redirected. The standard library will, by default, redirect requests (including POSTs) if
twirp/get-started/proto/echo.twirp.go:681
↓ 1 callers
Function
BaiduHotSearch
()
goquery/get-started/main.go:11
↓ 1 callers
Function
Calc
(op string, nums []int64)
go-flags/command/main.go:19
↓ 1 callers
Method
CheckCollision
()
ebiten/10-collision/game.go:109
← previous
next →
101–200 of 1,635, ranked by callers