Skip to main content

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 type int64.
  • Parameters:
    • v (interface{}): The variable to check.
  • Returns:
    • bool: Returns true if v is of type int64, false otherwise.

Function: IsString

  • Purpose: Checks if the input variable v is of type string.
  • Parameters:
    • v (interface{}): The variable to check.
  • Returns:
    • bool: Returns true if v is of type string, false otherwise.

Getting Started Relevance: NO