Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

import ( | |
"encoding/json" | |
) | |
#Predicate: { | |
Data: string | |
Timestamp: string | |
} | |
#ExternalRefs: { |
// StackOverflow analysis using its API in Go. | |
// | |
// Eli Bendersky [https://eli.thegreenplace.net] | |
// This code is in the public domain. | |
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" |
This document serves as a way for this project's maintainers to document their process of getting their repository ready for the 2020 Hacktoberfest alongside the Virtual Coffee Hacktoberfest Initiative. We also hope this project continues beyond just Hacktoberfest, and so we thought it best to collect all the knowledge, resources and learnings we pick up along the way in one central place, both for our own reflection, as well as sometimes that others can use to create welcoming and valuable spaces for their own open source contributions.
While we will try as best as possible to create a body of knowledge that is accessible and understandable to everyone who finds it, we hope you understand that this may not always be as comprehensive, current or exact as you may want to be. The language will be more candid that you might find in your typical technical documentation, and YMMV _(Your
package main | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"image" | |
"image/gif" | |
"io" | |
"os" |
I'm lucky enough to get asked to speak at a number of conferences, and I want to make sure I use that privilege to help improve the state of the industry. As a result I've put together a list to make sure the conferences I speak at reflect my values:
package main | |
// spurred from discussion around https://github.com/kubernetes/kubernetes/pull/54257#issuecomment-338274869 | |
import ( | |
"flag" | |
"fmt" | |
"go/ast" | |
"go/build" | |
"go/parser" |
How do you send information between clients and servers? What format should that information be in? What happens when the server changes the format, but the client has not been updated yet? What happens when the server changes the format, but the database cannot be updated?
These are difficult questions. It is not just about picking a format, but rather picking a format that can evolve as your application evolves.
By now there are many approaches to communicating between client and server. These approaches tend to be known within specific companies and language communities, but the techniques do not cross borders. I will outline JSON, ProtoBuf, and GraphQL here so we can learn from them all.
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
#!/usr/bin/env bash | |
set -o errexit | |
: ${GIT:=git} | |
__mainremote() { | |
if [[ "${REMOTE}" ]] ; then | |
echo "${REMOTE}" | |
return | |
fi |