Giter Club home page Giter Club logo

gocolls's Introduction

gocolls

gocolls provides a set of utility functions to work with different types of collections in Go.

Prerequisites

The following are needed for this project:

Go version 1.21 or higher.

Installing

To install the package:

go get github.com/amedmoore/gocolls

Usage

Here's an example of how to use gocolls:

package main

import (
	"fmt"
	"github.com/amedmoore/gocolls/slice"
)

func main() {
	s := []int{1, 2, 3, 4, 5}
	fmt.Println(slice.BoundedSub(s, 2, 12)) // Output: [3,4,5]
	fmt.Println(slice.Rotate(s, 2))         // Output: [3,4,5,1,2]
	fmt.Println(slice.Chunk(s, 3))          // Output: [[1 2 3] [4 5]]
}

Contributing

Contributions to the gocolls package are always welcome.

License

This gocolls project is distributed under the MIT License. See the accompanying LICENSE file for more details.

Project Status

Please be aware that this project is currently under development, and while the API is stable, additional features and improvements are forthcoming. You are welcome to utilize it as needed; however, note that certain functionalities may still be in progress at this stage of development. Your understanding and patience are appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.