codes

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package codes contains the types for DLSite RJ codes and RE codes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RECode

type RECode string

An RECode is an RE code for a DLSite work. An RECode is a valid WorkCode.

Deprecated; use WorkCode instead.

func ParseRECode

func ParseRECode(s string) RECode

ParseRECode returns the first RE code found in the string. If no RE code is found, returns an empty value.

Deprecated; use ParseCode instead.

type RJCode

type RJCode string

An RJCode is an RJ code for a DLSite work. An RJCode is a valid WorkCode.

Deprecated; use WorkCode instead.

func ParseRJCode

func ParseRJCode(s string) RJCode

ParseRJCode returns the first RJ code found in the string. If no RJ code is found, returns an empty value.

Deprecated; use ParseCode instead.

type WorkCode

type WorkCode string

A WorkCode is a code for a DLSite work.

func ParseCode added in v2.2.0

func ParseCode(s string) WorkCode

ParseCode returns the first DLSite work code found in the string. If no code is found, returns an empty value.

func (WorkCode) WorkType added in v2.2.0

func (c WorkCode) WorkType() string

WorkType returns the type of the work, e.g. RJ.

Jump to

Keyboard shortcuts

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