GoUtils

package module
v0.0.0-...-aa66d98 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

GoUtils

A lot of Go utilities in one place.

Import:

"github.com/StrajnarFilip/GoUtils"
import "github.com/StrajnarFilip/GoUtils"

Git clone:

https://github.com/StrajnarFilip/GoUtils.git

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64ToBytes

func Base64ToBytes(encoded string) []byte

func FileRead

func FileRead(path string) []byte

func FileWrite

func FileWrite(path string, content []byte)

func JSONdeserialize

func JSONdeserialize(jsonString string, output interface{})

Do not forget to pass a pointer to output! Passing function parameter without "&" will fail!

func JSONserialize

func JSONserialize(input interface{}) string

Do not forget to pass a pointer to input! Passing function parameter without "&" will fail!

func ToBase64

func ToBase64(bytes []byte) string

func XMLdeserialize

func XMLdeserialize(xmlString string, output interface{})

Do not forget to pass a pointer to output! Passing function parameter without "&" will fail!

func XMLserialize

func XMLserialize(input interface{}) string

Do not forget to pass a pointer to input! Passing function parameter without "&" will fail!

Types

This section is empty.

Jump to

Keyboard shortcuts

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