so you want to use the logger from go.uber.org/zap globally, and there are several ways of doing it: (for shortest way jump to #4)

1. pass-it-down

(just too many to pass it down and you know how)

2. Injection

func main() {
logger, _ := zap.NewProduction()
otherPackage1.Logger = logger
otherPackage2.Logger = logger
.... …

There are a lot of tools out there that do the full-fledged mock (for testing github.com/slack-go/slack), but I still decide to provide an alternative because

  1. Instead of mocking slack client, I mock HTTP
  2. I only need a (very) few test cases, and I want something very lightweight.

So the steps are:

  1. mock the server

While I was reading/watching various resources (basecamp) about working remotely, and being a remote software engineer for years, here are some of the tips:

  1. Video meetings: only require people who need to be in the meeting, as few as possible
  2. Video meetings are only used for debating/discussion when typing cannot…

Install Brew (skip if you already did)

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update & Install Go

brew update&& brew install golang

Setup Workspace

It’s considered best practice to use $HOME/go location for your workspace, so let’s do that!

mkdir -p $HOME/go/{bin,src,pkg}

We created two important folders bin and src that’ll be used for GO

Setup Environment

We’ll need to add to .bashrc or .zshrc (if…

This guide will import ONLY posts and feature image. Current migration only supports ghost v1, so if you don’t care about users and other stuff, read on!

Main Steps

  1. Export wp_posts and wp_postmeta from word-press
  2. Have ghost db created and restore above 2 table over
  3. Run a(my) node script

Step 1: Export those tables

the only two…

Jim Kang

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store