go-utils

module
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT

README

go-utils

Go Reference Release Report Card Go Status Lint Status codecov

Golang utility functions

Usage

package main

import (
     "fmt"

     "github.com/jeremmfr/go-utils/basiccheck"
)

func main() {
     s1 := []string{"foo", "bar"}
     s2 := []string{"bar", "foo"}

     if basiccheck.SimilarSlice(s1, s2) {
          fmt.Printf("%v =~ %v", s1, s2)
          // Output: [foo bar] =~ [bar foo]
     } else {
          fmt.Printf("%v != %v", s1, s2)
     }
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL