Git Product home page Git Product logo

gotrans's Introduction

GoTrans

Simple Translator API with golang

you can directly use the the translator by importing translate package to your apps.

How to Use Translate package

import translate "github.com/Hiroshii8/GoTrans/translate"

// init translate
trans := translate.New()

// call Request method for translate the text
transResp, err := trans.Request(fromLanguage, toLanguage, text)

How to run this apps

You can run this apps by typing

go run app.go

for testing the GoTrans via http or grpc

current folder tree

├── app.go
├── entity
│   └── json
│       └── json.go
├── go.mod
├── go.sum
├── grpc
│   ├── Makefile
│   └── proto
│       ├── translate.pb.go
│       └── translate.proto
├── handler
│   └── handler.go
├── README.md
├── server
│   ├── grpc.go
│   └── server.go
└── translate
    └── translate.go

Coming Soon Feature

- Auto reload apps
- NSQ
- Running in Docker (if i'm not lazy enough ^v^)
- Grace Stop

To Any Contributor

Feel free to contribute in here, this repo is meant to be a learning repository to anyone for learning to create webservice with GoLang. So happy learning (^v^)/

How To Contribute

  1. Fork this repo to yours
  2. Create feature that you desire to
  3. Create pull request and mention me for the update you want to merge. I will review as fast as i can.

gotrans's People

Contributors

hiroshii8 avatar linehk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.