រចនាសម្ព័ន្ធ លំនាំ
លំនាំសម្រាប់ផ្សំប្រភេទទិន្នន័យ និងព្រំដែនក្នុង Go ដោយប្រើ interfaces, embedding, adapters និង packages ដែលមានតួនាទីច្បាស់។
Adapter
មិនទាន់អានWrap an incompatible API behind the interface your application already expects so the rest of the code stays unchanged.
Bridge
មិនទាន់អានSeparate an abstraction from its implementation so both sides can vary independently without multiplying concrete types.
Composite
មិនទាន់អានTreat individual objects and object groups uniformly so recursive tree structures stay simple to traverse and aggregate.
Decorator
មិនទាន់អានAdd behavior around an object dynamically by wrapping it with small focused layers that share the same interface.
Facade
មិនទាន់អានProvide one simplified entry point over several collaborating subsystems so callers can trigger a workflow without knowing every step.
Flyweight
មិនទាន់អានShare intrinsic immutable state across many small objects so large collections stay cheaper in memory and easier to manage.
Proxy
មិនទាន់អានControl access to another object by standing in front of it to add caching, authorization, rate limiting, or lazy loading.