# Tygo - Go 소스에서 Typescript 타입들 생성하는 도구

> Clean Markdown view of GeekNews topic #6132. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6132](https://news.hada.io/topic?id=6132)
- GeekNews Markdown: [https://news.hada.io/topic/6132.md](https://news.hada.io/topic/6132.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-03-13T09:35:01+09:00
- Updated: 2022-03-13T09:35:01+09:00
- Original source: [github.com/gzuidhof](https://github.com/gzuidhof/tygo)
- Points: 9
- Comments: 1

## Topic Body

- 백엔드 REST API를 Go로 개발하고, 프론트를 Typescript로 개발할 경우에 필요한 Type들을 자동으로 생성해주는 도구   
- Reflection 기반의 방법과 달리, 코멘트를 유지하고, 상수를 이해하며, 비구조체 type 표현식도 지원

## Comments



### Comment 9216

- Author: kbumsik
- Created: 2022-03-13T12:13:38+09:00
- Points: 1

Golang 의 struct 를 통해서 API만들어내는 프로젝트가 꽤 있더라고요.  
  
Protocol Buffer 의 .proto 파일을 go struct 을 통해서 만들어내는 게 대표적이죠. 그러니깐 원래 protobuf의 사용의 반대 순서죠. Etcd와 k8s가 그렇게 하고 있는 모양입니다: https://github.com/gogo/protobuf
