LetsGO icon indicating copy to clipboard operation
LetsGO copied to clipboard

Examples of the most important features of this languages.

Author Pablo Picouto García

My image

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

My image

  • Types
  • Collections
  • Conditions
  • Functions
  • Methods
  • Interfaces
  • Error Handling
  • Concurrency
  • Pointers
  • Context

Monads

My image

  • Maybe
  • Try
  • Either
  • Future
  • Collection

Patterns

My image

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

Connectors

My image

  • Rest
  • Cassandra
  • Kafka
  • gRPC

Programs

My image

Kubernetes

My image

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

My image

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

My image

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

StarWars Adventure