MCPcopy
hub / github.com/redis/go-redis / WithLibraryName

Function WithLibraryName

command.go:7878–7880  ·  view source on GitHub ↗

WithLibraryName returns a valid LibraryInfo with library name only.

(libName string)

Source from the content-addressed store, hash-verified

7876
7877// WithLibraryName returns a valid LibraryInfo with library name only.
7878func WithLibraryName(libName string) LibraryInfo {
7879 return LibraryInfo{LibName: &libName}
7880}
7881
7882// WithLibraryVersion returns a valid LibraryInfo with library version only.
7883func WithLibraryVersion(libVer string) LibraryInfo {

Callers 1

initConnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected