go-utils

module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 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() {
     sliceOfString := []string{"foo", "bar"}

     if basiccheck.InSlice("bar", sliceOfString) {
          fmt.Printf("bar found in %v", sliceOfString)
          // Output: bar found in [foo bar]
     } else {
          fmt.Printf("bar not found in %v", sliceOfString)
     }
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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