poeditor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package poeditor handles communication with POEditor API.

See https://poeditor.com/docs/api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TryNewErrorFromResponse

func TryNewErrorFromResponse(resp response) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) GetExportURL

func (c *Client) GetExportURL(projectID, languageCode string) (string, error)

func (*Client) GetProjectLanguages

func (c *Client) GetProjectLanguages(projectID string) ([]Language, error)

type Error

type Error struct {
	Code        int
	Message     string
	Description string
}

Error represents a known error from POEditor API.

See: https://poeditor.com/docs/error_codes

func (Error) Error

func (e Error) Error() string

type Language

type Language struct {
	Name string
	Code string
}

Jump to

Keyboard shortcuts

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