GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - simPod/WTFGo: Repo where I cry

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
img
img
 
 
README.md
README.md
 
 

Repository files navigation

WTF Go

While learning about golang, I stubled upon many things that don't make much sense compared to other languages. The language has IMO high WTF factor. I want to list those WTFs so it either reminds me to get understanding of it or to serve as a strawman so I don't get tempted to touch the language.

#crymeariver

Missing access modifiers

type memberInfo struct { means private access (only accessible within single package)

type MemberInfo struct { means public access (accessible from other packages)

Where are access modifiers?!

Switch-case Indent

Is this a proper indentation for switch case? Why reinvent something that works... The outcome is definitelly worse.

switch i {
case 1:
    fmt.Println("one")
case 2:
    fmt.Println("two")
case 3:
    fmt.Println("three")
}

Seems like it's the reason why it can't be collapsed

Dreaming about collapsing switch statement

About

Repo where I cry

Topics

crycrymearivercrymoredespairgolanglanguagewtf

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.