Socket
Book a DemoInstallSign in
Socket

github.com/whuhyw/container

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/whuhyw/container

Source
Go
Version
v0.0.0-20200828011317-2ba5d64858b5
Version published
Created
Source

container - Common Golang Data Structure

Build Status Go Report Card GoDoc

Go code (golang) set of packages that provide common data structure

Installation

To install container, use go get:

go get github.com/whuhyw/container

This will then make the following packages available to you:

github.com/whuhyw/container/stack
github.com/whuhyw/container/queue

Import the container/stack package into your code using this template:

package main

import (
  "github.com/whuhyw/container/stack"
)

func main() {
    s := stack.NewStack()
    
    s.Push("hello")
    if !s.Empty(){
        s.Pop()
    }
}

Staying up to date

To update container to the latest version, use go get -u github.com/whuhyw/container.

Contributing

Please feel free to submit issues, fork the repository and send pull requests!

When submitting an issue, we ask that you please include a complete test function that demonstrates the issue.

License

This project is licensed under the terms of the MIT license.

FAQs

Package last updated on 28 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts