defaultdata

package
v0.0.0-...-0871eb3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package defaultdata is just sample for check about what is default data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeValOnInterface

func ChangeValOnInterface(val interface{})

ChangeValOnInterface is to check when passing interface{}

func ChangeValOnMap

func ChangeValOnMap(val map[string]int)

ChangeValOnMap is to check when passing map

func ChangeValOnPointer

func ChangeValOnPointer(val *string)

ChangeValOnPointer is to check when passing pointer

func ChangeValOnSlice

func ChangeValOnSlice(val []string)

ChangeValOnSlice is to check when passing slice

func CheckBool

func CheckBool(val bool)

CheckBool is to check nil argument at bool type

func CheckByte

func CheckByte(val []byte)

CheckByte is to check nil argument at []byte type

func CheckError

func CheckError(val error)

CheckError is to check nil argument at error type

func CheckInt

func CheckInt(val int)

CheckInt is to check nil argument at int type

func CheckInterface

func CheckInterface(val interface{})

CheckInterface is to check nil argument at interface{} type

func CheckInterfaceWhenPointer

func CheckInterfaceWhenPointer(val interface{})

CheckInterfaceWhenPointer is to check pointer argument in interface{} type

func CheckInterfaceWhenSlice

func CheckInterfaceWhenSlice(val interface{})

CheckInterfaceWhenSlice is to check slice argument in interface{} type

func CheckMap

func CheckMap(val map[string]int)

CheckMap is to check nil argument at map type

func CheckMultiInterface

func CheckMultiInterface(args ...interface{})

CheckMultiInterface is to check nil argument at multiple interface{} type

func CheckSlice

func CheckSlice(val []string)

CheckSlice is to check nil argument at slice type

func CheckString

func CheckString(val string)

CheckString is to check nil argument at string type

Types

This section is empty.

Jump to

Keyboard shortcuts

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