This commit is contained in:
estomm
2021-06-15 16:08:54 +08:00
parent fa03aa19d2
commit f017a8bde3
4 changed files with 105 additions and 10 deletions

View File

@@ -51,8 +51,7 @@ Go号称兼备C++的运行效率和PHP的开发效率但benchmarks好像并
![](image/2021-05-20-07-40-21.png)
### go mieyou de texing
### go去掉的内容
Go项目包括编程语言本身附带了相关的工具和标准库最后但并非代表不重要的是关于简洁编程哲学的宣言。就事后诸葛的角度来看Go语言的这些地方都做的还不错拥有自动垃圾回收、一个包系统、函数作为一等公民、词法作用域、系统调用接口、只读的UTF8字符串等。但是Go语言本身只有很少的特性也不太可能添加太多的特性。例如它没有隐式的数值转换没有构造函数和析构函数没有运算符重载没有默认参数也没有继承没有泛型没有异常没有宏没有函数修饰更没有线程局部存储。但是语言本身是成熟和稳定的而且承诺保证向后兼容用之前的Go语言编写程序可以用新版本的Go语言编译器和标准库直接构建而不需要修改代码。
## 2 从C的角度理解Go

View File

@@ -1,14 +1,18 @@
package main
import (
"fmt"
"net/http"
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, you've requested: %s\n", r.URL.Path)
})
func main(){
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, you've requested: %s\n", r.URL.Path)
})
http.ListenAndServe(":80", nil)
}
http.ListenAndServe(":80", nil)
file, err := os.Create("writeAt.txt")
if err != nil { panic(err) }
defer file.Close() file.WriteString("Golang中文社区——这里是多余") n, err := file.WriteAt([]byte("Go语言中文网"), 24) if err != nil { panic(err) } fmt.Println(n)
}

36
Go/test/format.go Normal file
View File

@@ -0,0 +1,36 @@
type RawBytes
type Result
type DB
func Open(driverName, dataSourceName string) (*DB, error)
func (db *DB) Driver() driver.Driver
func (db *DB) Ping() error
func (db *DB) Close() error
func (db *DB) SetMaxOpenConns(n int)
func (db *DB) SetMaxIdleConns(n int)
func (db *DB) Exec(query string, args ...interface{}) (Result, error)
func (db *DB) Query(query string, args ...interface{}) (*Rows, error)
func (db *DB) QueryRow(query string, args ...interface{}) *Row
func (db *DB) Prepare(query string) (*Stmt, error)
func (db *DB) Begin() (*Tx, error)
type Row
func (r *Row) Scan(dest ...interface{}) error
type Rows
func (rs *Rows) Columns() ([]string, error)
func (rs *Rows) Scan(dest ...interface{}) error
func (rs *Rows) Next() bool
func (rs *Rows) Close() error
func (rs *Rows) Err() error
type Stmt
func (s *Stmt) Exec(args ...interface{}) (Result, error)
func (s *Stmt) Query(args ...interface{}) (*Rows, error)
func (s *Stmt) QueryRow(args ...interface{}) *Row
func (s *Stmt) Close() error
type Tx
func (tx *Tx) Exec(query string, args ...interface{}) (Result, error)
func (tx *Tx) Query(query string, args ...interface{}) (*Rows, error)
func (tx *Tx) QueryRow(query string, args ...interface{}) *Row
func (tx *Tx) Prepare(query string) (*Stmt, error)
func (tx *Tx) Stmt(stmt *Stmt) *Stmt
func (tx *Tx) Commit() error
func (tx *Tx) Rollback() error
func Register(name string, driver driver.Driver)

View File

@@ -0,0 +1,56 @@
## 会议内容
### 相关加密协议
https://
http://
SSL://
### 目标
* 加密/解密 恶意流量
* 分析恶意流量
### 相关资料
有一篇综述
流量加密类型
* 应用层加密
* 网络层加密
动态流量识别
* 可以用来借鉴恶意软件的恶意流量识别。
### 研究内容
1. 恶意软件的表征。
2. 恶意流量的表征。
DPI表征。
机器学习表征。
xgb
### 恶意软件分类的事情:
* 行为类型。实现针对系统的破坏和入侵行为。构成恶意软家族,利用相同的漏洞或者操作模式,对系统进行入侵和破坏。
* 恶意目标。实现针对使用者的侵害和损伤行为。一般是在系统破坏和入侵以后,针对系统使用者试行的行为的内容。包括勒索行为、恶意广告、正常使用阻碍、数据隐私窃取等等。
### 关联方法
* 公害行为之间的关联。上下游,提供
* 行为主体的关联。
* 行为内容的关联。生成知识主体。建立关联。七国峰会----九个领导人的照片。
## 个人任务
### TLS
* 搞明白SSL和TLS。这些协议是怎么运行的。做一些调研。
* 易俊凯。TLS1.3和1.2的区别
* Http、https协议怎么加密。