type_asserts.go
type_asserts.go - Overview
This file provides type assertion functions for checking if a variable is of a specific type (int64 or string).
Detailed Documentation
Function: IsInt64
- Purpose: Checks if the input variable
v
is of typeint64
. - Parameters:
v
(interface{}): The variable to check.
- Returns:
bool
: Returnstrue
ifv
is of typeint64
,false
otherwise.
Function: IsString
- Purpose: Checks if the input variable
v
is of typestring
. - Parameters:
v
(interface{}): The variable to check.
- Returns:
bool
: Returnstrue
ifv
is of typestring
,false
otherwise.