Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/6boris/Golang-Learn
/ types & classes
Types & classes
352 in github.com/6boris/Golang-Learn
⨍
Functions
1,648
◇
Types & classes
352
↓ 2 callers
Class
Solution
Definition for singly-linked list. public class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null;
Leetcode/0160-Intersection-of-Two-Linked-Lists/Solution.java:12
↓ 1 callers
TypeAlias
ByAge
Basic-Grammar/Sort/struct/main.go:17
↓ 1 callers
TypeAlias
MyInt
GreekTime/go_learning/code/ch3/type_test/type_test.go:5
Struct
ABData
Design-Patterns-Golang/Behavior/Visitor/Visitor.go:21
Struct
AObserver
Design-Patterns-Golang/Behavior/Observer/Observer.go:34
Struct
AToB
从A到B
Design-Patterns-Golang/Behavior/Strategy/Strategy.go:16
Struct
AbsScreenEventHandler
Design-Patterns-Golang/Behavior/ChainOfResponsibility/ChainOfResponsibility.go:21
Struct
AccessDepartment
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:145
Struct
AccessFactory
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:188
Struct
AccessUser
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:102
Struct
AdapterNonToYes
类的适配器模式 似乎golang语言层面已经支持了,暂且搁置 对象的适配器模式 适配可充电电池使用接口
Design-Patterns-Golang/Struct/Adapter/Adapter.go:42
Struct
AddVisitor
Design-Patterns-Golang/Behavior/Visitor/Visitor.go:30
Struct
Agent
GreekTime/go_learning/code/ch41/microkernel/agent.go:46
Struct
AirStrategy
Design-Patterns-Golang/Behavior/Strategy/Strategy.go:53
Struct
AndExpression
与
Design-Patterns-Golang/Behavior/Interpreter/Interpreter.go:41
Struct
Animal
Basic-Grammar/fmt/Println/main.go:5
Struct
ArrayContainer
数组集合
Design-Patterns-Golang/Behavior/Iterator/Iterator.go:43
Struct
ArrayIterator
数组迭代器
Design-Patterns-Golang/Behavior/Iterator/Iterator.go:21
Struct
Article
Framework/Gin/v2/main.go:11
Struct
Article
Framework/Gin/v3/main.go:11
Struct
Article
Framework/Gin/v1/main.go:12
Struct
ArticleGroup
Framework/Gin/v1/main.go:27
Struct
BaseMessageBuilder
基本信息构造器
Design-Patterns-Golang/Struct/Decorator/Decorator.go:20
Struct
BasicInfo
GreekTime/go_learning/code/ch43/easyjson/struct_def.go:3
Struct
BasicInfo
GreekTime/go_learning/code/ch42/json/struct_def.go:3
Struct
Beer
啤酒
Design-Patterns-Golang/Create/Builder/Builder.go:79
Struct
BikeStrategy
Design-Patterns-Golang/Behavior/Strategy/Strategy.go:29
Struct
BraceMessageBuilderDecorator
大括号装饰器
Design-Patterns-Golang/Struct/Decorator/Decorator.go:37
Struct
BusStrategy
Design-Patterns-Golang/Behavior/Strategy/Strategy.go:41
Struct
CdnRequest
Design-Patterns-Golang/Struct/Bridge/Bridge.go:30
Struct
ChatRoom
中介者模式(Mediator Pattern) 是用来降低多个对象和类之间的通信复杂性。 这种模式提供了一个中介类,该类通常处理不同类之间的通信,并支持松耦合,使代码易于维护
Design-Patterns-Golang/Behavior/Mediator/Mediator.go:9
Struct
Circle
Circle represents a circle...
Structs-Methods-Interfaces/Test4/shapes.go:27
Struct
Circle
Circle represents a circle...
Structs-Methods-Interfaces/Test5/shapes.go:27
Struct
Circle
Circle represents a circle...
Structs-Methods-Interfaces/Test3/shapes.go:22
Struct
Client
客户端
Design-Patterns-Golang/Struct/Bridge/Bridge.go:20
Struct
CmdContext
上下文
Design-Patterns-Golang/Behavior/Command/Command.go:35
TypeAlias
Code
GreekTime/go_learning/code/ch13/polymorphsim/polymorphsim_test.go:8
Struct
Coder
外观模式 隐藏系统的复杂性,并向客户端提供了一个客户端可以访问系统的接口
Design-Patterns-Golang/Struct/Facade/Facade.go:10
Struct
Cola
可乐
Design-Patterns-Golang/Create/Builder/Builder.go:67
Interface
Collector
GreekTime/go_learning/code/ch41/microkernel/agent.go:39
Struct
CollectorsError
GreekTime/go_learning/code/ch41/microkernel/agent.go:18
Interface
Command
Command(命令) 命令模式(Command Pattern)是一种数据驱动的设计模式,它属于行为型模式。 请求以命令的形式包裹在对象中,并传给调用对象。 调用对象寻找可以处理该命令 的合适的对象,并把该命令传给相应的对象,该对象执行命令。 命令接口
Design-Patterns-Golang/Behavior/Command/Command.go:12
Struct
CommandHandler
命令管理者
Design-Patterns-Golang/Behavior/Command/Command.go:41
Struct
Company
公司 拥有产品策划、程序员、测试人员,运维人员 通过公司这个外观对外提供服务, 而不是直接通过某个类型人员对外服务(虽然最终提供服务的也是某个类型的人员)
Design-Patterns-Golang/Struct/Facade/Facade.go:42
Struct
ConcurrentMapBenchmarkAdapter
GreekTime/go_learning/code/ch48/maps/concurrent_map_benchmark_adapter.go:5
Struct
ConsumerT
消费者
Framework/Nsq/v2/receive.go:12
Struct
ConsumerT
消费者
Framework/Nsq/v3/receive.go:10
Interface
Container
集合接口
Design-Patterns-Golang/Behavior/Iterator/Iterator.go:16
Struct
Content
GreekTime/go_learning/code/ch49/gc_friendly/passing_ref/pass_array_test.go:9
Struct
Customer
GreekTime/go_learning/code/ch39/unsafe_programming/unsafe_test.go:12
Struct
Customer
GreekTime/go_learning/code/ch37/reflect/reflect_test.go:62
Struct
Customer
GreekTime/go_learning/code/ch38/flexible_reflect_test.go:33
Struct
Data
Temp/Interview/o1/solution.go:9
Struct
Data
Algorithm/Sort/Sort_test.go:13
Struct
DataAccess
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:207
Interface
DataStruct
Design-Patterns-Golang/Behavior/Visitor/Visitor.go:17
Struct
DbConnect
数据库连接
Design-Patterns-Golang/Struct/Flyweight/Flyweight.go:40
Struct
DbConnectPool
享元模式 实现对象的共享,即共享池,当系统中对象多的时候可以减少内存的开销,通常与工厂模式一起使用。 sync.pool 就属于此模式 数据库连接池
Design-Patterns-Golang/Struct/Flyweight/Flyweight.go:12
Struct
DemoCollector
GreekTime/go_learning/code/ch41/microkernel/agent_test.go:11
Struct
Department
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:48
Struct
Department
组合模式 将对象组合成树形结构以表示“部分-整体”的层次结构。组合模式使得用户对单个对象和组合对象的使用具有一致性。
Design-Patterns-Golang/Struct/Composite/Compistie.go:9
Interface
Device
代理模式 为其他对象提供一种代理以控制对这个对象的访问 优点: 1、职责清晰。 2、高扩展性。 3、智能化。 注意事项: 1、和适配器模式的区别:适配器模式主要改变所考虑对象的接口, 而代理模式不能改变所代理类的接口。 2、和装饰器模式的区别:装饰器模式为了增强功能,而代理模式 是为了加以控制。 似
Design-Patterns-Golang/Struct/Proxy/Proxy.go:16
Struct
Dog
GreekTime/go_learning/code/ch12/extension/extension_test.go:20
Struct
Drink
饮料
Design-Patterns-Golang/Create/Builder/Builder.go:29
Struct
Employee
GreekTime/go_learning/code/ch45/roa/resource_oriented_arc.go:12
Struct
Employee
GreekTime/go_learning/code/ch43/easyjson/struct_def.go:10
Struct
Employee
GreekTime/go_learning/code/ch37/reflect/reflect_test.go:52
Struct
Employee
GreekTime/go_learning/code/ch11/encapsulation/encap_test.go:9
Struct
Employee
GreekTime/go_learning/code/ch38/flexible_reflect_test.go:23
Struct
Employee
GreekTime/go_learning/code/ch42/json/struct_def.go:10
Struct
Event
GreekTime/go_learning/code/ch41/microkernel/agent.go:30
Interface
EventReceiver
GreekTime/go_learning/code/ch41/microkernel/agent.go:35
Interface
Expression
解释器模式(Interpreter Pattern) 提供了评估语言的语法或表达式的方式,文法解释,它属于行为型模式。 这种模式实现了一个表达式接口,该接口解释一个特定的上下文。这种模式被用在 SQL 解析、符号处理引擎等。 一般递归处理
Design-Patterns-Golang/Behavior/Interpreter/Interpreter.go:14
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/command-line/v1/FileSystemStore.go:11
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v7/FileSystemStore.go:9
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v2/FileSystemStore.go:8
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v9/FileSystemStore.go:11
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v6/FileSystemStore.go:9
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v5/FileSystemStore.go:9
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v8/FileSystemStore.go:10
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v3/FileSystemStore.go:9
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v1/FileSystemStore.go:8
Struct
FileSystemPlayerStore
FileSystemPlayerStore stores players in the filesystem
Basic-Grammar/io/v4/FileSystemStore.go:9
Interface
Filter
Filter interface is the definition of the data processing components Pipe-Filter structure
GreekTime/go_learning/code/ch40/pipe_filter/pipe_filter/filter.go:12
Struct
Food
食物
Design-Patterns-Golang/Create/Builder/Builder.go:15
Struct
FriedChicken
炸鸡
Design-Patterns-Golang/Create/Builder/Builder.go:55
Struct
GetCommand
Get 命令
Design-Patterns-Golang/Behavior/Command/Command.go:17
Struct
GoProgrammer
GreekTime/go_learning/code/ch13/polymorphsim/polymorphsim_test.go:13
Struct
GoProgrammer
GreekTime/go_learning/code/ch11/interface/interface_test.go:9
Struct
Group
Framework/Gin/v3/main.go:19
Struct
Hamburger
汉堡
Design-Patterns-Golang/Create/Builder/Builder.go:43
Struct
HardDisk
Design-Patterns-Golang/Struct/Proxy/Proxy.go:21
Struct
HardDiskProxy
Design-Patterns-Golang/Struct/Proxy/Proxy.go:33
Struct
HomeScreenEventHandler
Design-Patterns-Golang/Behavior/ChainOfResponsibility/ChainOfResponsibility.go:36
Interface
I
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Type-Shadowing/main.go:24
Interface
IDepartment
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:121
Interface
IF
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Nil-Interfaces/main.go:7
Interface
IScreenEventHandler
Design-Patterns-Golang/Behavior/ChainOfResponsibility/ChainOfResponsibility.go:16
Interface
IUser
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:78
Interface
Ifactory
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:164
next →
1–100 of 352, ranked by callers