decode

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 5 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 ans 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