Documentation ¶
Overview ¶
Package jsn is built on top of bin; focus on json, not binary. Meant to be used directly in the CLI application (main function in the root directory of the repository).
Index ¶
- func ByteSliceToJsn(b []byte) (interface{}, error)
- func ByteSliceToJsnObj(b []byte) (map[string]interface{}, error)
- func Get(path string) (rJ interface{}, rErr error)
- func GetObj(path string) (map[string]interface{}, error)
- func JsnObjToByteSlice(jo map[string]interface{}) ([]byte, error)
- func JsnObjToReader(jo map[string]interface{}) io.Reader
- func JsnObjToStr(jo map[string]interface{}) (string, error)
- func JsnToByteSlice(j interface{}) ([]byte, error)
- func JsnToReader(j interface{}) io.Reader
- func JsnToStr(j interface{}) (string, error)
- func New(path string, j interface{}) error
- func Over(path string, j interface{}) error
- func ReaderToJsn(r io.Reader) (interface{}, error)
- func ReaderToJsnObj(r io.Reader) (map[string]interface{}, error)
- func Rm(path string) error
- func StrToJsn(s string) (interface{}, error)
- func StrToJsnObj(s string) (map[string]interface{}, error)
- func Up(path string, j interface{}) (rErr error)
- type Dir
- func (d *Dir) All() ([]string, error)
- func (d *Dir) BinDir() *bin.Dir
- func (d *Dir) Get(name string) (interface{}, error)
- func (d *Dir) GetObj(name string) (map[string]interface{}, error)
- func (d *Dir) New(name string, j interface{}) error
- func (d *Dir) Over(name string, j interface{}) error
- func (d *Dir) Path(name string) string
- func (d *Dir) Rm(name string) error
- func (d *Dir) Up(name string, j interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSliceToJsn ¶
func ByteSliceToJsnObj ¶
func JsnObjToByteSlice ¶
func JsnObjToReader ¶
func JsnObjToStr ¶
func JsnToByteSlice ¶
func JsnToReader ¶
func ReaderToJsn ¶
func StrToJsnObj ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.