You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: snow_flake.go
    path of file: ./repos/learning_tools/all_packaged_library/base/tool
    
    the code of the file until where you have to start completion: package tool

import (
	"errors"
	"sync"
	"time"
)

const (
	workerBits  uint8 = 1
    
func NewWorker(workerId int64) error {
	if workerId < 0 || workerId > workerMax {
		return errors.New("Worker ID excess of quantity")
	}
	wk = &Worker{
		timestamp: 0,
		workerId:  workerId,
		number:    0,
	}
	// 生成一个新节点
	return nil
}