taikulawo / languages

多语言

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编程语言练习

TODO

[] 从 xmake 切换到 cmake

xmake构建

C++

cd cpp

编译运行

xmake build sptr && xmake run sptr

编译

xmake

运行: 不重新编译,运行上次的binary

xmake run main

生成 compile_commands

xmake project -k compile_commands

rust

cd rust
cargo run --bin hello

golang

golang同一目录只能有一个main函数,每个binary都放到单独的folder

cd golang
go run hello/main.go

About

多语言


Languages

Language:C++ 43.5%Language:Rust 33.3%Language:C 13.9%Language:Lua 6.5%Language:TypeScript 2.4%Language:Go 0.4%