Skip to content

Instantly share code, notes, and snippets.

@alelb
alelb / migration_to_monorepo.md
Last active May 7, 2025 12:41
Procedure to migrate to a monorepo project preserving the git history

Migrate standalore app to monorepo project

First, prepare the standalone-app to be ready for when it needs to be pushed into the monorepo project

$ cd standalone-app
$ git checkout main
$ git fetch
$ git checkout -b prepare-migration main
$ mkdir -p packages/standalone-app
@alelb
alelb / main.go
Created November 7, 2017 14:39
Golang json marshal
package main
import (
"encoding/json"
"fmt"
"time"
)
type MyUser struct {
ID int64 `json:"id"`
@alelb
alelb / main.go
Created November 3, 2017 16:36
Static and dynamic type unmarshalling
package main
import (
"encoding/json"
"fmt"
"log"
)
type MyUser struct {
ID int64 `json:"id"`
@alelb
alelb / main.go
Created November 2, 2017 11:01
Marshal, Unmarshal integer filed
package main
import (
"encoding/json"
"fmt"
"os"
)
func main() {