lua-protobuf
A Lua module to work with Google protobuf
파일 탐색기
- test.yml
- lua-protobuf-0.5.3-1.rockspec
- lua-protobuf-scm-1.rockspec
- .gitignore
- .travis.yml
- CMakeLists.txt
- LICENSE
- luaunit.lua
- pb.c
- pb.h
- protoc.lua
- README.md
- README.zh.md
- serpent.lua
- test.lua
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
fmt
설명 보기 ▼
fmt
단락을 결합하고 줄 너비를 문자 수 (기본적으로 75자)로 제한하여 텍스트 파일의 서식을 다시 지정.
더 많은 정보: <https://www.gnu.org/software/coreutils/manual/html_node/fmt-invocation.html>.
fmt {{path/to/file}}
파일 재포맷:
fmt {{[-w|--width]}} {{n}} {{path/to/file}}
(최대) `n` 문자의 출력 줄을 생성하는 파일 형식을 다시 지정:
fmt {{[-s|--split-only]}} {{path/to/file}}
주어진 너비보다 짧은 줄을 결합하지 않고, 파일 형식을 다시 지정:
gcc
설명 보기 ▼
gcc
C와 C++ 소스 파일들을 전처리, 컴파일하여 모으고 이어줍니다.
더 많은 정보: <https://gcc.gnu.org/onlinedocs/gcc/>.
gcc {{path/to/source1.c path/to/source2.c ...}} {{[-o|--output]}} {{path/to/output_executable}}
다수의 소스 파일을 실행 파일로 컴파일합니다:
gcc {{path/to/source.c}} -Wall {{[-o|--output]}} {{output_executable}}
일반적인 경고와 디버그 심볼을 출력합니다:
gcc {{path/to/source.c}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}
다른 경로에 위치한 라이브러리들을 포함합니다:
git clone
설명 보기 ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
pip install
설명 보기 ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
protoc
설명 보기 ▼
protoc
Google Protobuf `.proto` 파일을 파싱하고 지정된 언어로 출력을 생성.
더 많은 정보: <https://manned.org/protoc>.
protoc --python_out={{path/to/output_directory}} {{input_file.proto}}
`.proto` 파일에서 Python 코드를 생성:
protoc --java_out={{path/to/output_directory}} --proto_path={{path/to/import_search_path}} {{input_file.proto}}
다른 `.proto` 파일을 가져오는 `.proto` 파일에서 Java 코드를 생성:
protoc --csharp_out={{path/to/c#_output_directory}} --js_out={{path/to/js_output_directory}} {{input_file.proto}}
여러 언어에 대한 코드 생성:
