jsonb

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 5 Imported by: 1

README

go-jsonb

GoDev

go-jsonb は JSON ファイルの読み書きを提供します.

Usage

import "github.com/17e10/go-jsonb"

type person struct {
    Name string `json:"name"`
    Age  int    `json:"age"`
}
john := person{"john", 20}
jsonb.Save(filename, &john)

var readed person
jsonb.Load(filename, &readed)
readed == john

License

This software is released under the MIT License, see LICENSE.

Author

17e10

Documentation

Overview

go-jsonb は JSON ファイルの読み書きを提供します.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load[V any](name string, v *V) error

Load は JSON ファイルを読み込みます

func Save

func Save[V any](name string, v *V) error

Save は JSON ファイルに保存します.

Types

This section is empty.

Jump to

Keyboard shortcuts

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