article

package
v0.0.0-...-6f95374 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Description

type Description string

Description 記事の説明.

func NewDescription

func NewDescription(value string) (Description, error)

NewDescription 記事の説明を新規作成する関数.

func (Description) String

func (d Description) String() string

String 記事の説明を文字列として提供するメソッド.

type ID

type ID uuid.UUID

ID.

func GenerateID

func GenerateID() ID

GenerateID IDを新規に発行する関数.

func NewID

func NewID(value string) (ID, error)

NewID IDを作成するファクトリー関数.

func (ID) String

func (i ID) String() string

String IDを文字列型として提供するメソッド.

func (ID) Value

func (i ID) Value() uuid.UUID

Value IDをuuid.UUID型として提供するメソッド.

type Scope

type Scope string
const (
	All Scope = "all"
	Own Scope = "own"
)

func NewScope

func NewScope(s string) (Scope, error)

func (Scope) String

func (sc Scope) String() string

type Tag

type Tag string

Tag 記事のタグ.

func NewTag

func NewTag(value string) (Tag, error)

NewTag タグを作成するファクトリー関数.

func (Tag) String

func (t Tag) String() string

String 記事のタグを文字列として提供するメソッド.

type TagList

type TagList []Tag

Tag タグリスト.

func NewTagList

func NewTagList(values []Tag) (TagList, error)

NewTagList タグリストを新規作成する関数.

func (TagList) Append

func (t TagList) Append(tag Tag) TagList

Append タグを追加するメソッド.

func (TagList) Contains

func (t TagList) Contains(target Tag) bool

Contains リスト内のタグの存在チェックを行うメソッド.

func (TagList) Len

func (t TagList) Len() int

Len タグリストに含まれるのタグの個数を提供するメソッド.

func (TagList) StringSlice

func (t TagList) StringSlice() []string

StringSlice 文字列型のスライスを提供するメソッド.

type Thumbnail

type Thumbnail string

Thumbnail サムネイル.

func NewThumbnail

func NewThumbnail(t string) (Thumbnail, error)

NewThumbnail サムネイルを新規作成するファクトリー関数.

func (Thumbnail) String

func (t Thumbnail) String() string

String サムネイルを文字列として提供するメソッド.

type Title

type Title string

Title 記事のタイトル.

func NewTitle

func NewTitle(t string) (Title, error)

NewTitle 記事のタイトルを新規作成する関数.

func (Title) String

func (t Title) String() string

String 記事のタイトルを文字列として提供するメソッド.

type URL

type URL string

URL 記事のURL.

func NewURL

func NewURL(value string) (URL, error)

NewURL URLを新規作成する関数.

func (URL) String

func (ur URL) String() string

String URLを文字列として提供するメソッド.

Jump to

Keyboard shortcuts

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