Our incident.io pkg/errors, as explained in:
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
module slice | |
func InterfaceSlice(slice interface{}) []interface{} { | |
switch slice := slice.(type) { | |
case []string: | |
new := make([]interface{}, len(slice)) | |
for i, v := range slice { | |
new[i] = v | |
} | |
return new |
This is inspired (or basically copied) from How To Merge Github Wiki Changes From One Repository To Another, by Roman Ivanov, and serves to ensure that should something happen to the original article, the information remains nice and safe here.
OREPO: original repo - the repo created or maintained by the owner
FREPO: the forked repo that presumably has updates to its wiki, not yet on the OREPO