All Projects → mamal72 → slicy

mamal72 / slicy

Licence: MIT license
A set of typesafe chainable slice helpers to reduce pain of working with slices

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Labels

Projects that are alternatives of or similar to slicy

comment-value
Instruments a Node program and updates its comments with computed expression values
Stars: ✭ 27 (+50%)
Mutual labels:  helper
TataruHelper
Tataru Helper - application for translation of in-game texts in Japan MMORPG - Final Fantasy XIV. The texts are understood as MSQ, cutscenes, quests, NPC replicas, etc.
Stars: ✭ 255 (+1316.67%)
Mutual labels:  helper
csshelper
CSS helper, forget traditional css frameworks approach, every class is a task-like
Stars: ✭ 14 (-22.22%)
Mutual labels:  helper
epic-kitchens-55-lib
☕ EPIC-KITCHENS-55 dataset python library
Stars: ✭ 28 (+55.56%)
Mutual labels:  helper
SettingsUI
Windows 11 settings page in WinUI 3 applications ported from Powertoys
Stars: ✭ 95 (+427.78%)
Mutual labels:  helper
cfw-easy-utils
An in-depth library to assist with common tasks with CF Workers. Includes utils for responses, cookies, and more!
Stars: ✭ 52 (+188.89%)
Mutual labels:  helper
phoenix html simplified helpers
Some helpers for phoenix html( truncate, time_ago_in_words, number_with_delimiter, url_for, current_page? )
Stars: ✭ 29 (+61.11%)
Mutual labels:  helper
ideas
Идеи по улучшению языка C++ для обсуждения
Stars: ✭ 65 (+261.11%)
Mutual labels:  helper
craft-helper
A collection of useful Craft CMS macros and components.
Stars: ✭ 23 (+27.78%)
Mutual labels:  helper
MagicaVoxel File Writer
MagicaVoxel File Writer dependency free cpp class
Stars: ✭ 26 (+44.44%)
Mutual labels:  helper
klas-helper
🎠 광운대학교 KLAS 사이트에 편리한 기능을 추가할 수 있는 유저 스크립트
Stars: ✭ 60 (+233.33%)
Mutual labels:  helper
vault-token-helper
@hashicorp Vault Token Helper for macOS, Linux and Windows with support for secure token storage and multiple Vault servers 🔐
Stars: ✭ 74 (+311.11%)
Mutual labels:  helper
PREBorderView
A very simple Objective-C UIView category for specifying single-sided borders.
Stars: ✭ 18 (+0%)
Mutual labels:  helper
go-http-client
An enhanced http client for Golang
Stars: ✭ 48 (+166.67%)
Mutual labels:  helper
sendmessage
SendMessage is a little tool to send Windows messages to any window.
Stars: ✭ 93 (+416.67%)
Mutual labels:  helper
raise if
one liner `raise Exception if condition` for Python
Stars: ✭ 15 (-16.67%)
Mutual labels:  helper
permissionUtil
Simple permission helper
Stars: ✭ 64 (+255.56%)
Mutual labels:  helper
IDCardNumber-Validator
An Objective-C & Swift implementation to (check) validate Chinese ID Card No. 身份证号码验证
Stars: ✭ 15 (-16.67%)
Mutual labels:  helper
nest-abstract
NestJs Abstraction Helper
Stars: ✭ 36 (+100%)
Mutual labels:  helper
xd-storage-helper
A little helper to make storing key-value-pairs (e.g. settings) for Adobe XD plugins easier.
Stars: ✭ 22 (+22.22%)
Mutual labels:  helper

Go Report Card GoDoc license

[ ]Slicy

Slicy is a set of typesafe chainable slice helpers that help you work with slices easier.

Installation

go get github.com/mamal72/slicy
# or use dep, vgo, glide or anything else

Usage

Supported Types

  • byte
  • int
  • int8
  • int16
  • int32
  • int64
  • float32
  • float64
  • uint
  • uint8
  • uint16
  • uint32
  • uint64
  • string
  • interface{}

Implemented Methods

  • Filter
  • Map
  • Push
  • Pop
  • Shift
  • Unshift
  • Append
  • Concat
  • Every
  • Some
  • Includes
  • Len

Example

Here is a simple example of string slice:

s := slicy.NewFromStringSlice([]string{"my", "string", "slice", "no!"})
s.Filter(func(item string) {
    return item != "no!"
})
// You may call other methods here...

result := s.GetSlice() // returns a *[]string containing {"my", "string", "slice"}

Build

This package is generated using genny. You can simply run go generate or make generate to build project.

Ideas || Issues

Just create an issue and describe it. I'll check it ASAP!

Contribution

You can fork the repository, improve or fix some part of it and then send the pull requests back if you want to see them here. I really appreciate that. ❤️

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].