LetsGO
LetsGO copied to clipboard
Examples of the most important features of this languages.
Author Pablo Picouto García

Let's GO
Examples of the most important features of this languages.
In order to follow examples, it's better read from top to bottom of the page.
Is this repo useful? Please ⭑Star this repository and share the love.
Features

- Types
- Collections
- Conditions
- Functions
- Methods
- Interfaces
- Error Handling
- Concurrency
- Pointers
- Context
Monads

- Maybe
- Try
- Either
- Future
- Collection
Patterns

- Dependency Injection & DDD
- Publisher/Subscriber
- Functional options
- Builder pattern
- Decorator pattern
- Observer pattern
- Pattern matching
- Strategy
- Circuit breaker
Connectors

- Rest
- Cassandra
- Kafka
- gRPC
Programs

- Customer order service
- Communications
- Who is watching
Kubernetes

Examples of Kubernetes Operators, that use Go client for talking to a kubernetes cluster.
Each operator is divide in the Operator_test that run the test and the Controller with the extended methods that interact with K8s API
- Namespace operator
- Pod operator
- Role Binding operator
GraphQL

Example of IMDb service implemented using GraphQL
- Server
You can run the test scenario and then make some queries like
curl -g 'http://localhost:12345/imdb?query={actors(movie:"Matrix"){name,age}}'
curl -g 'http://localhost:12345/imdb?query={actors(movie:"Fight_club"){name,age}}'
Vegeta Performance

Example of performance test using this awesome library
- Over 9000!
HexaGolang
A Project example implemented with Hexagonal architecture.
In this project we apply architect design patterns like CQRS:Command-Query-responsibility-segregation and Event Sourcing
We also implement idempotent for POST Operations