Skip to content
bitmap implemented by golang
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
bitmap.go
bitmap_test.go

README.md

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)
    }
}
You can’t perform that action at this time.