Movatterモバイル変換


[0]ホーム

URL:


jsondb

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:5Imported by:1

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package jsondb provides a trivial "database": a Go object saved todisk as JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeDB

type DB[Tany] struct {// Data is the contents of the database.Data *T// contains filtered or unexported fields}

DB is a database backed by a JSON file.

funcOpen

func Open[Tany](pathstring) (*DB[T],error)

Open opens the database at path, creating it with a zero value ifnecessary.

func (*DB[T])Save

func (db *DB[T]) Save()error

Save writes db.Data back to disk.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp