Skip to content

legendtkl/bitmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

bitmap

bitmap is implemented by golang

example

package main

import (
    "github.com/legendtkl/bitmap"
    "fmt"
)

func main() {
    bitMap, _ := bitmap.NewBitMap(100)
    err := bitMap.SetOne(101)   // out of size
    if err != nil {
        fmt.Println(err)
    }

    bitMap.SetOne(99)
    x, err = bitMap.GetPosition(99)
    if err != nil {
        fmt.Println(err)
    } else {
        fmt.Println(x)
    }
}

About

bitmap implemented by golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages