yaml

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AesKey = "B0X128M4CO524D18"

AesKey key for AES

View Source
var EndTag = "}"

EndTag End tag

View Source
var StartTag = "${"

StartTag default start tag

View Source
var Version = "development"

Version version

Functions

func AESDecrypt added in v0.1.3

func AESDecrypt(cryted string) string

AESDecrypt decrypt with default key

func AESEncrypt added in v0.1.3

func AESEncrypt(orig string) string

AESEncrypt AES encrypt with default key

func AesDecrypt

func AesDecrypt(cryted string, key string) string

AesDecrypt aes decrypt

func AesEncrypt

func AesEncrypt(orig string, key string) string

AesEncrypt aes encrypt

func LoadYamlViaTemplate added in v0.3.0

func LoadYamlViaTemplate(file string, out interface{}) error

LoadYamlViaTemplate Load yaml with template engine.

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blocksize int) []byte

PKCS7Padding 补码

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

PKCS7UnPadding 去码

func Parse added in v0.3.1

func Parse(file string) ([]byte, error)

Types

type YamlTemplate added in v0.3.0

type YamlTemplate struct {
	Version string
	Yaml    string
}

Jump to

Keyboard shortcuts

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