Categorygithub.com/doITmagic/go-snippets
repositorypackage
0.0.0-20230629151031-44f814d29ed9
Repository: https://github.com/doitmagic/go-snippets.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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 :joy:
  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