Ben Chuanlong Du's Blog

It is never too late to learn.

Parse YAML in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Comments

  1. The serde_yaml crate is the best tool for parsing YAML in Rust.

Hands on JavaScript

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Get Information of User in Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Get Information of the Current User

user.Current() returns information of the current (real) user. If the code is run by a non-root user named some_user on Linux, then information of some_user is returned. However, if some_user has sudo