ឥរិយាបថ លំនាំ
លំនាំសម្រាប់រៀបចំ control flow, workflows និងការសហការងារ ដោយផ្អែកលើ errors ច្បាស់លាស់, interfaces និងឯកតាអាកប្បកិរិយាតូចៗ។
លំនាំ Chain of Responsibility ក្នុង Go
មិនទាន់អានបង្កើត validation និង request-processing pipelines ដោយប្រើ handlers តូចៗដែលត្រូវបានផ្សំតាម interfaces។
លំនាំ Command ក្នុង Go
មិនទាន់អានខ្ចប់ operations សម្រាប់ queuing, audit history និង undo/redo ខណៈដែលរក្សា Go error handling ឱ្យច្បាស់លាស់។
Interpreter
មិនទាន់អានDefine a small grammar for recurring business rules and evaluate sentences of that grammar with an expression tree.
Iterator
មិនទាន់អានTraverse a collection without exposing its internal representation, keeping traversal state separate from the aggregate.
Mediator
មិនទាន់អានCentralize communication between collaborating objects so they depend on a coordinator instead of referencing each other directly.
Memento
មិនទាន់អានCapture and restore object state without exposing internal details so undo and rollback remain explicit and controlled.
Observer
មិនទាន់អានNotify dependent subscribers when state changes so event-driven reactions stay decoupled from the publisher.
State
មិនទាន់អានChange an object’s behavior when its internal state changes by delegating transitions and rules to state-specific types.
Strategy
មិនទាន់អានEncapsulate interchangeable algorithms behind one interface so callers can swap behavior without branching on concrete rules.
Template Method
មិនទាន់អានDefine the skeleton of an algorithm once while letting concrete steps vary through narrow hook methods.
Visitor
មិនទាន់អានAdd operations across a stable object structure without changing each node type whenever a new operation is introduced.