FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

idiom/empty-struct: add empty struct by anton-fuji · Pull Request #129 · tmrts/go-patterns · GitHub

idiom/empty-struct: add empty struct - #129

Open
anton-fuji wants to merge 1 commit into
tmrts:masterfrom
anton-fuji:empty-struct-idiom
Open

idiom/empty-struct: add empty struct#129
anton-fuji wants to merge 1 commit into
tmrts:masterfrom
anton-fuji:empty-struct-idiom

Conversation

Copy link
Copy Markdown

Summary

Adds the empty struct idiom to the idioms section.

The empty struct (struct{}) is a well-known Go idiom widely used in the community, but it hasn't been documented in this repository yet.
This PR adds idiom/empty-struct.md with some common use cases.

Changes

  • add idiom/empty-struct.md with implementation and usage examples
  • update README.md to include the new pattern in the Idioms table

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL