v8tools

package
v0.0.0-...-838dce9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(name string) (bool, error)

func IsNoExist

func IsNoExist(name string) (bool, error)

func NewUID

func NewUID(n int) string

func ВременныйКаталог

func ВременныйКаталог() string

func ВременныйКаталогСПрефисом

func ВременныйКаталогСПрефисом(pre string) string

func ЗначениеЗаполнено

func ЗначениеЗаполнено(Значение string) bool

func ИницализироватьВременныйКаталог

func ИницализироватьВременныйКаталог() string

func НовыйВременныйФайл

func НовыйВременныйФайл(p string, s string) string

func НовыйФайлИнформации

func НовыйФайлИнформации() string

func ОчиститьВременныйКаталог

func ОчиститьВременныйКаталог()

func ПрочитатьФайл1С

func ПрочитатьФайл1С(filename string) ([]byte, error)

Similar to ioutil.ReadFile() but decodes UTF-16. Useful when

func ПустаяСтрока

func ПустаяСтрока(Значение string) bool

Types

type Charset

type Charset byte

type JsonBirthDate

type JsonBirthDate time.Time

first create a type alias

func (JsonBirthDate) Format

func (j JsonBirthDate) Format(s string) string

Maybe a Format function for printing your date

func (JsonBirthDate) MarshalJSON

func (j JsonBirthDate) MarshalJSON() ([]byte, error)

func (*JsonBirthDate) UnmarshalJSON

func (j *JsonBirthDate) UnmarshalJSON(b []byte) error

imeplement Marshaler und Unmarshalere interface

type Person

type Person struct {
	Name      string        `json:"name"`
	BirthDate JsonBirthDate `json:"birth_date"`
}

Add that to your struct

Jump to

Keyboard shortcuts

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