types

package
v0.35.6 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ASCII_MIN           = 32  // min visible ascii
	ASCII_MAX           = 126 // max visible ascii
	ASCII_DEL           = 127 // ascii for DEL
	MAX_LEN_DESCRIPTION = 500
)
View Source
const (
	NAME_RESTRICTIONS        charRestrictionEnum = "name"
	DESCRIPTION_RESTRICTIONS charRestrictionEnum = "description"
	INDEX_RESTRICTIONS       charRestrictionEnum = "index"
)
View Source
const (
	TimeFormat = "2006-January-02 15:04:05"
)
View Source
const (
	TokenDenom = "ulava"
)

Variables

View Source
var ErrInvalidDenomMsg = "invalid denominator"

Functions

func ByteSliceToASCIIStr

func ByteSliceToASCIIStr(input []byte, placeholder rune) string

Convert byte slice to ASCII-only string Non-ASCII characters will be replaced with placeholder

func ConvertUnixTimestampToString

func ConvertUnixTimestampToString(val uint64) string

func ValidateString

func ValidateString(s string, restrictType charRestrictionEnum, disallowedChars []rune) bool

Validates name strings. Current policy:

name: lowercase ascii letters and digits only and the characters {' ', '_'}. can't be empty.
description/reason: ascii letters (a-zA-z) and digits only and the characters {' ', '_'}. can't be empty. no more than MAX_PROJECT_DESCRIPTION_LEN.

Types

This section is empty.

Jump to

Keyboard shortcuts

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