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: 1104.Path In Zigzag Labelled Binary Tree.go
    path of file: ./repos/LeetCode-Go/leetcode/1104.Path-In-Zigzag-Labelled-Binary-Tree
    
    the code of the file until where you have to start completion: package leetcode

func pathInZigZagTree(lab
    
func getLevel(label int) int {
	level := 0
	nums := 0
	for {
		nums += 1 << level
		if nums >= label {
			return level
		}
		level++
	}
}