decode

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package decode can decode the json to the required string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStringOfMessage

func GetStringOfMessage(g interface{}) string

GetStringOfMessage returns string form of error.

func JSONDecode

func JSONDecode(data []byte, i interface{}) error

JSONDecode decodes the data to json sent to it.

func ReadFile

func ReadFile(filename string) ([]byte, error)

ReadFile as name specifies it just reads the content of file and returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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