Home
Softono

My Go Examples

Open source MIT Go
33
Stars
3
Forks
1
Issues
3
Watchers
3 months
Last Commit

 About My Go Examples

A place to keep my go examples.

Platforms

Web Self-hosted

Languages

Go

Links

Need Help Installing My Go Examples?

We provide expert installation service for this software. Our team will install, configure, and secure My Go Examples on your server. plans start at just $30.

My Go Examples

View on GitHub

MY GO EXAMPLES

jeffdecola.com MIT License Go Reference Go Report Card

A place to keep my go examples.

Table of Contents

Appendix

Documentation and Reference

ARCHITECTURES

CGO

CLIENT/SERVER

  • gRPC

    • Coming soon.
  • HTTP

    • Coming soon.
  • TCP/IP

    • Coming soon.

CLOUD SERVICE PROVIDERS

  • AMAZON WEB SERVICES

    • Coming soon.
  • GOOGLE CLOUD PLATFORM

    • Coming soon.
  • MICROSOFT AZURE

    • Coming soon.

CRYPTOGRAPHY

  • ASYMMETRIC CRYPTOGRAPHY (Great for digital signatures (verify sender) and receiving encrypted data)

    • Coming soon.
  • HASHING (Great for getting fingerprints)

    • Coming soon.
  • SYMMETRIC CRYPTOGRAPHY (Using the same key to encrypt and decrypt)

    • Coming soon.

DATA STRUCTURES AND ALGORITHMS

  • DATA STRUCTURES

    • Coming soon.
  • ALGORITHMS

    • SEARCHING

      • Coming soon.
    • SORTING

      • Coming soon.

DATABASES

  • NON-RELATIONAL

    • Coming soon.
  • RELATIONAL

    • Coming soon.

ERROR HANDLING

  • BASIC

  • WRAPPING

    • Coming soon.
  • SENTINELS

    • Coming soon.

FUNCTIONS, METHODS AND INTERFACES

  • FUNCTIONS

    • functions

      Using functions to calculate the area of a rectangle and circle.

    • functions-pointers-arguments

      Using functions to calculate the area of a rectangle and circle by passing pointers.

  • METHODS

    • methods

      Using methods to calculate the area of a rectangle and circle.

    • methods-pointers-arguments

      Using methods to calculate the area of a rectangle and circle by passing pointers.

    • methods-pointers-receivers

      Using methods to calculate the area of a rectangle and circle by passing pointers and using pointer receivers.

  • INTERFACES

    • interfaces

      Using an interface to calculate the area of a rectangle and circle.

    • interfaces-pointers-arguments

      Using an interface to calculate the area of a rectangle and circle by passing pointers.

    • interfaces-pointers-receivers

      Using an interface to calculate the area of a rectangle and circle by passing pointers and using pointer receivers.

    • shapes-package

      Using an interface to calculate and manipulate simple 2D and 3D geometric shapes.

GO RUNTIME

INPUT/OUTPUT

  • IO READER

    • io-reader

      Read data (a stream of bytes) from a string, buffer, file, stdin and a pipe to a buffer using the io standard package.

    • io-reader-simple

      Read data (a stream of bytes) from a buffer to a buffer using the io standard package.

    • read-file

      Read a file (*os.File) to a buffer.

    • read-user-input

      Read user input (os.Stdin) to a buffer (using Read method) and string (using Fscan).

  • IO WRITER

    • io-writer

      Write data (a stream of bytes) to a buffer, file, stdout and a pipe from a buffer using the io standard package.

    • io-writer-simple

      Write data (a stream of bytes) to a buffer from a buffer using the io standard package.

IN-PROCESS COMMUNICATION

  • SHARED MEMORY

    • ASYNCHRONOUS

      • Coming soon.
    • SYNCHRONOUS

      • pipes-unnamed-simple

        A pipe provides a uni-directional communication channel. This is a very simple example of an unnamed pipe.

      • pipes-unnamed

        This is a more robust example of an unnamed pipe showing multiple reads.

      • pipes-unnamed-io

        This example of an unnamed pipe connects an io.Writer and io.Reader.

  • MESSAGE PASSING

    • ASYNCHRONOUS

      • channels-buffered

        Buffered channels are uni-directional, asynchronous with no blocking.

    • SYNCHRONOUS

INTER-PROCESS COMMUNICATION (IPC)

  • SHARED MEMORY

    • ASYNCHRONOUS

      • Coming soon.
    • SYNCHRONOUS

      • pipes-named

        Sending data over a named-pipe (FIFO) from one process to another process.

  • MESSAGE PASSING

IoT

MODULES AND PACKAGES

MY GENERIC GO TEMPLATES

  • JEFFS BASIC TEMPLATE

    • jeffs-basic-go-template

      My generic go template with flags, logging & error handling. A place to see how everything fits together.

PROGRAM BASICS

STRUCTS AND TYPES

  • STRUCTS

    • Coming soon.
  • CONSTRUCTORS

    • constructor-simple

      Constructors are functions that build and return a new instance of a struct, often with defaults.

    • constructor-with-error

      Expanding on constructor-simple to add a configuration struct and error handling.

  • GENERICS

    • Coming soon.

TESTING

  • UNIT TESTS

    • Coming soon.
  • TABLE-DRIVEN TESTS

    • Coming soon.
  • BENCHMARKS

    • Coming soon.
  • FUZZING

    • Coming soon.

STANDARD GO PACKAGES

Current as of go 1.26.4.