JSON

package
v0.0.0-...-41c7706 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportToFileJson

func ExportToFileJson(data interface{}, path string) error

func ExportToFolderFileJson

func ExportToFolderFileJson(data []byte, folder string, file string) error

func GetAllItemsInJson

func GetAllItemsInJson(jsonString string) ([]string, []string, error)

func ListItemInJson

func ListItemInJson(jsonString string) (string, error)

func SearchItemInJson

func SearchItemInJson(jsonString string, keyword string) (string, error)

func TestJson

func TestJson()

func TransferJsonToString

func TransferJsonToString()

func TransferStringToJson

func TransferStringToJson(stringData string) (interface{}, error)

Types

type Server

type Server struct {
	ServerName string
	ServerIP   string
}

type ServerSlice

type ServerSlice struct {
	Servers []Server
}

Jump to

Keyboard shortcuts

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