client

package
v0.0.0-...-f5bd76a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

post requester

Copyright 2022 github.com/hxx258456/gdeepl

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Post

func Post(request *Request) error

Types

type Reponse

type Reponse struct {
	Code int    `json:"code"`
	Data string `json:"data"`
}

type Request

type Request struct {
	Text       string `json:"text"`
	SourceLang string `json:"source_lang"`
	TargetLang string `json:"target_lang"`
}

Jump to

Keyboard shortcuts

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