dto

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configen

type Configen struct {
	Version      string         `json:"version"`
	Destinations []*Destination `json:"destinations"`
	Sources      []*Source      `json:"sources"`
}

Configen 表示 ConfigenJSON 内部的 root 对象

type Destination

type Destination struct {
	ID      DestinationID `json:"id"`
	Path    string        `json:"path"`
	Sources []SourceID    `json:"sources"`
}

Destination 表示目标文件夹

type DestinationID

type DestinationID string

DestinationID ...

func (DestinationID) String

func (id DestinationID) String() string

type Source

type Source struct {
	ID        SourceID `json:"id"`
	Path      string   `json:"path"`
	Recursive bool     `json:"r"` // 是否递归
}

Source 表示源文件夹

type SourceID

type SourceID string

SourceID ...

func (SourceID) String

func (id SourceID) String() string

Jump to

Keyboard shortcuts

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