diff --git a/Go/Go基础/1 概述.md b/Go/Go基础/1 概述.md index 940e2c99..5bbdd8b1 100644 --- a/Go/Go基础/1 概述.md +++ b/Go/Go基础/1 概述.md @@ -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 diff --git a/Go/test/1.go b/Go/test/1.go index 05483a70..4bada33a 100644 --- a/Go/test/1.go +++ b/Go/test/1.go @@ -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) -} \ No newline at end of file + 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) +} diff --git a/Go/test/format.go b/Go/test/format.go new file mode 100644 index 00000000..76b7efc8 --- /dev/null +++ b/Go/test/format.go @@ -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) \ No newline at end of file diff --git a/工作日志/2021年6月15日-恶意流量.md b/工作日志/2021年6月15日-恶意流量.md new file mode 100644 index 00000000..70062376 --- /dev/null +++ b/工作日志/2021年6月15日-恶意流量.md @@ -0,0 +1,56 @@ +## 会议内容 + +### 相关加密协议 +https:// +http:// +SSL:// + +### 目标 + +* 加密/解密 恶意流量 +* 分析恶意流量 + +### 相关资料 +有一篇综述 + +流量加密类型 +* 应用层加密 +* 网络层加密 + +动态流量识别 + +* 可以用来借鉴恶意软件的恶意流量识别。 + + + +### 研究内容 + +1. 恶意软件的表征。 +2. 恶意流量的表征。 + +DPI表征。 + +机器学习表征。 + +xgb + + +### 恶意软件分类的事情: + +* 行为类型。实现针对系统的破坏和入侵行为。构成恶意软家族,利用相同的漏洞或者操作模式,对系统进行入侵和破坏。 +* 恶意目标。实现针对使用者的侵害和损伤行为。一般是在系统破坏和入侵以后,针对系统使用者试行的行为的内容。包括勒索行为、恶意广告、正常使用阻碍、数据隐私窃取等等。 + + +### 关联方法 + +* 公害行为之间的关联。上下游,提供 +* 行为主体的关联。 +* 行为内容的关联。生成知识主体。建立关联。七国峰会----九个领导人的照片。 + +## 个人任务 + +### TLS + +* 搞明白SSL和TLS。这些协议是怎么运行的。做一些调研。 +* 易俊凯。TLS1.3和1.2的区别 +* Http、https协议怎么加密。 \ No newline at end of file