Skip to content

Instantly share code, notes, and snippets.

View michalis-papamichael's full-sized avatar
🎯
Focusing

Michalis Papamichael michalis-papamichael

🎯
Focusing
  • Cyprus
  • 04:25 (UTC +02:00)
View GitHub Profile
@nikhita
nikhita / update-golang.md
Last active January 18, 2026 08:23
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@warpfork
warpfork / practices-golang-plugin-patterns.md
Created May 31, 2016 16:00
Golang Practices: Patterns for "plugin" Package Layouts

wise choices for plugin patterns in golang

Any time you use an interface, really -- if it's a small one, you might cram everything into one package. If it's not small... you need to decide how to lay out your packaging!

Phase 1: Declare interfaces and API data types in a top level package

Put all the interfaces (and, any other structures that are completely shared data types and part of the general API) in one package. This is the stuff that most of your program is referring to already, so this is a process of making those boundaries explicit.