Skip to content

Instantly share code, notes, and snippets.

View solarhell's full-sized avatar
🐽
Focusing

jiaxin solarhell

🐽
Focusing
  • Nanking
  • 23:45 (UTC +08:00)
View GitHub Profile

表达式

表达式是操作符将操作数组合起来形成的。操作符除了我们熟知的加减乘除二元的和正负号这种一元的外,还有像函数调用使用的()和数组,map索引使用的[]等等, 所以foo()v_map[index]都是一个表达式。而像已经定义的变量,例如x,它其实可以理解成(x),所以它也是一个表达式。

赋值语句

参考了了一下 Go 的文档,赋值语句应该和 标识符 没有关系,它的定义是这样的:

@gavinhungry
gavinhungry / nginx-tls.conf
Last active October 20, 2025 00:46
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Name: nginx-tls.conf
# Auth: Gavin Lloyd <gavinhungry@gmail.com>
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related
# to SSL/TLS are not included here.
#
# Additional tips:
#