Documentation
¶
Overview ¶
Package file file related operations
Index ¶
- Variables
- func JSONFileToBytes(pathFile string) ([]byte, error)
- func JSONFileToMap(pathFile string) (map[string]interface{}, error)
- func JSONGenericMapToBytes(input map[string]interface{}) ([]byte, error)
- func JSONMerge(input [][]byte) ([]byte, error)
- func JSONPrettify(input []byte) (*bytes.Buffer, error)
- func JSONPrettifyNoError(input []byte) *bytes.Buffer
- func JSONWriteInterface(options *JSONWriteInterfaceOptions) ([]byte, error)
- func TOMLBytesToJSON(input []byte) ([]byte, error)
- func TOMLBytesToMergedJSON(bytesSlices [][]byte) ([]byte, error)
- func TOMLFileReaderCallbackToJSON(getFileCallback func() (fs.File, error)) ([]byte, error)
- func TOMLFileReaderToJSON(input fs.File, doClose bool) ([]byte, error)
- func TOMLFileToJSON(input string) ([]byte, error)
- func TOMLFilesToMergedJSON(pathFiles []string) ([]byte, error)
- func TOMLReaderToJSON(input io.Reader) ([]byte, error)
- func TOMLStringToJSON(input string) ([]byte, error)
- func WriteFile(options *WriteFileOptions) error
- type JSONTimeRFC3399
- type JSONWriteInterfaceOptions
- type WriteFileOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
JSONTimeRFC3399Layout = "2006-01-02T15:04:05.999999999Z0700"
)
Functions ¶
func JSONFileToBytes ¶ added in v1.1.4
func JSONFileToMap ¶ added in v1.1.4
func JSONGenericMapToBytes ¶
func JSONPrettifyNoError ¶
func JSONWriteInterface ¶
func JSONWriteInterface(options *JSONWriteInterfaceOptions) ([]byte, error)
func TOMLBytesToJSON ¶
func TOMLBytesToMergedJSON ¶
func TOMLFileReaderCallbackToJSON ¶ added in v1.1.3
func TOMLFileReaderToJSON ¶ added in v1.1.3
func TOMLFileToJSON ¶
func TOMLFilesToMergedJSON ¶
func TOMLStringToJSON ¶
func WriteFile ¶
func WriteFile(options *WriteFileOptions) error
Types ¶
type JSONTimeRFC3399 ¶
usage: `json:"time"`
func (*JSONTimeRFC3399) IsSet ¶
func (ct *JSONTimeRFC3399) IsSet() bool
func (*JSONTimeRFC3399) MarshalJSON ¶
func (self *JSONTimeRFC3399) MarshalJSON() ([]byte, error)
func (*JSONTimeRFC3399) UnmarshalJSON ¶
func (self *JSONTimeRFC3399) UnmarshalJSON(b []byte) (err error)
type WriteFileOptions ¶
Click to show internal directories.
Click to hide internal directories.