util

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy[T any](v T) T

func GenerateTemplate

func GenerateTemplate(tplName, tplPath, outputPath string, tplVar interface{}, formatSource bool) error

func InList

func InList[T Comparable[T]](what T, in []T) bool

func InListEq

func InListEq[T comparable](what T, in []T) bool

func NotInList

func NotInList[T comparable](what T, in []T) bool

func ToCapitalizedCamelCase

func ToCapitalizedCamelCase(s string) string

Types

type Comparable

type Comparable[T any] interface {
	// the values are -1 (less than), 0 (same), or 1 (greater than)
	CompareTo(T) int
}

Jump to

Keyboard shortcuts

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