utils

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package utils contains utility functions used by all modules.

Index

Constants

View Source
const DateTimeFormat = "2006-01-02 15:04:05"

DateTimeFormat const is defined in go 1.20 in time.DateTime remove when swagger circleci image is updated to go 1.20.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(str string) string

Capitalize returns the string with its first character capitalized.

func Ptr

func Ptr[T any](v T) *T

Ptr returns a pointer to a literal. Use for initializations. e.g., var pb *bool = Ptr(true).

Types

This section is empty.

Jump to

Keyboard shortcuts

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