solana-go

(★ 1,575)

Go SDK library and RPC client for the Solana Blockchain

파일 탐색기

  • .envrc
  • .gitignore
  • .golangci.yml
  • .goreleaser.yml
  • account.go
  • account_test.go
  • base58_bench_test.go
  • CHANGELOG.md
  • constants.go
  • CONTRIBUTING.md
  • fee_calculator.go
  • generic_instruction.go
  • generic_instruction_test.go
  • go.mod
  • go.sum
  • init_test.go
  • interface.go
  • json.go
  • keys.go
  • keys_test.go
  • LICENSE
  • logging.go
  • message.go
  • message_bench_test.go
  • message_test.go
  • message_v0_test.go
  • mnemonic.go
  • mnemonic_test.go
  • nativetype_test.go
  • nativetypes.go
  • nonce.go
  • nonce_test.go
  • program_ids.go
  • README.md
  • registry.go
  • registry_test.go
  • sanitize.go
  • sanitize_test.go
  • sysvar.go
  • transaction.go
  • transaction_bench_test.go
  • transaction_test.go
  • transaction_v0_test.go
  • types.go
  • types_test.go
  • util.go

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

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}}

주어진 너비보다 짧은 줄을 결합하지 않고, 파일 형식을 다시 지정:

🔍

go get

설명 보기 ▼

Add a dependency package, or download packages in legacy GOPATH mode.
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.

go get {{example.com/pkg}}

Add a specified package to `go.mod` in module-mode or install the package in GOPATH-mode:

go get {{example.com/pkg}}@{{v1.2.3}}

Modify the package with a given version in module-aware mode:

go get {{example.com/pkg}}@{{none}}

Remove a specified package:

🔍

go test

설명 보기 ▼

Test Go packages (files have to end with `_test.go`).
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.

go test

Test the package found in the current directory:

go test -v

[v]erbosely test the package in the current directory:

go test -v ./...

Test the packages in the current directory and all subdirectories:

🔍

golangci-lint

설명 보기 ▼

병렬 처리, 스마트하고 빠른 Go 린터 실행 도구로 주요 IDE와 통합되며 YAML 구성을 지원합니다.
더 많은 정보: <https://golangci-lint.run/welcome/quick-start/>.

golangci-lint run

현재 폴더에서 린터 실행:

golangci-lint linters

활성화 및 비활성화된 린터 목록 표시 (참고: 비활성화된 린터는 마지막에 표시되며, 활성화된 린터로 착각하지 마세요):

golangci-lint run {{[-E|--enable]}} {{linter}}

특정 린터를 이 실행에서 [E]nable:

🔍

time

설명 보기 ▼

명령어 실행 시간을 측정.
참고: `time`은 셸 내장 명령어이거나 독립 실행형 프로그램이거나 둘 다일 수 있습니다.
관련 항목: `times`.
더 많은 정보: <https://manned.org/time>.

time {{command}}

`command`를 실행하고 시간 측정 결과를 `stdout`에 출력:

time

현재 시스템 시간 표시 및 새 시간 입력 요청 (비워두면 변경되지 않음):

time read

매우 간단한 스톱워치 생성 (Bash에서만 작동):

🔍

timeout

설명 보기 ▼

명령을 일정 시간 제한 내에서 실행.
더 많은 정보: <https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html>.

timeout 3s sleep 10

`sleep 10`을 실행하고 3초 후 종료:

timeout {{[-s|--signal]}} {{INT|HUP|KILL|...}} {{5s}} {{sleep 10}}

시간 제한이 만료되면 명령에 [s]ignal을 전송 (`TERM`이 기본, 모든 신호 목록은 `kill -l`):

timeout {{[-v|--verbose]}} {{0.5s|1m|1h|1d|...}} {{command}}

시간 초과 시 전송된 신호를 `stderr`에 [v]erbose 출력으로 표시:

🔍

rpcClient

설명 보기 ▼

MS-RPC 클라이언트 도구 (samba 모음의 일부).
더 많은 정보: <https://www.samba.org/samba/docs/current/man-html/rpcclient.1.html>.

rpcclient {{[-U|--user]}} {{domain}}\{{username}}%{{password}} {{ip_address}}

원격 호스트에 연결:

rpcclient {{[-U|--user]}} {{username}} {{[-W|--workgroup]}} {{domain}} {{[-N|--no-pass]}} {{ip_address}}

비밀번호 없이 도메인에 있는 원격 호스트에 연결:

rpcclient {{[-U|--user]}} {{domain}}\{{username}} --pw-nt-hash {{ip_address}}

비밀번호 해시를 전달하여 원격 호스트에 연결:

🔍

net

설명 보기 ▼

네트워크 관련 설정을 보고 수정하는 시스템 유틸리티입니다.
더 많은 정보: <https://learn.microsoft.com/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/gg651155(v=ws.11)>.

net {{start|stop}} {{service}}

동기적으로 Windows 서비스 시작 또는 중지:

net use {{\\smb_shared_folder}} /USER:{{username}}

현재 콘솔에서 SMB 공유 가능한지 확인:

net share

현재 SMB로 공유되는 폴더 표시:

# 프로젝트 배지

// repository documentation