go-snippets

command module
v0.0.0-...-44f814d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

README

go-snippets

Go language snippets

  1. logger : simply concurrent logger made using syncand iopackages
  2. hashtable : a hashtable made in golang
  3. graphql example
  4. patterns:
    1. Creational
      • builder
      • factory
      • singleton
    2. Messaging
      • fan out 3.Structural
      • decorator
  5. prepend : because it didn't exist let's add it 😂
  6. broadcast : one event to multiples channels
  7. detectClosedChannel : detect if a channel is closed, and we can write to it
  8. slice tricks with experimental packages
  9. What is happening if we use a slice like parameters in a function, sending it by value? It will be changed? The response is here https://github.com/doITmagic/go-snippets/blob/main/canGenerateBugs/sliceByValue/sliceByValue.md
  10. Slices package

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package broadcast package that provides an abstraction to broadcast values to multiple goroutines
Package broadcast package that provides an abstraction to broadcast values to multiple goroutines
channels
patterns
creational/singleton
Singleton is a creational design pattern, which ensures that only one object of its kind exists and provides a single point of access to it for any other code.
Singleton is a creational design pattern, which ensures that only one object of its kind exists and provides a single point of access to it for any other code.
messaging/fanOut
Package fanOut -- Fan out/fan in pattern in Go The Fan out/fan in pattern in Go allows for the processing of activities in parallel, where multiple functions are spun to execute the activities, and at the end of processing, the orchestrator waits for all parallel activities to finish
Package fanOut -- Fan out/fan in pattern in Go The Fan out/fan in pattern in Go allows for the processing of activities in parallel, where multiple functions are spun to execute the activities, and at the end of processing, the orchestrator waits for all parallel activities to finish
Package prepend Go have a built-in append function that allows for the appending of a value to a slice.
Package prepend Go have a built-in append function that allows for the appending of a value to a slice.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL