使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.9)@enduml PlantUML 语言参考指引 (1.2019.9) 8 / 173 1.11 给消息添加注释 1 时序图 1.11 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 你也可以通过使用 end note 来添加多行注释。 @startuml Alice->Bob : hello note left: this is 语言参考指引 (1.2019.9) 9 / 173 1.12 其他的注释 1 时序图 1.12 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice hello ref over Bob This can be on several lines end ref @enduml 1.17 延迟 你可以使用... 来表示延迟,并且还可以给延迟添加注释。 @startuml PlantUML 语言参考指引 (1.2019.9) 13 / 173 1.18 空间 1 时序图 Alice -> Bob: Authentication Request0 码力 | 174 页 | 2.00 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.1)@enduml 1.10 组合消息 我们可以通过以下关键词将组合消息: • alt/else • opt PlantUML 语言参考指引 (1.2019.1) 7 / 145 1.11 给消息添加注释 1 时序图 • loop • par • break • critical • group, 后面紧跟着消息内容 可以在标头 (header) 添加需要显示的文字 (group 除外)。 Please repeat end @enduml 1.11 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 PlantUML 语言参考指引 (1.2019.1) 8 / 145 1.12 其他的注释 1 时序图 你也可以通过使用 end note 来添加多行注释。 @startuml Alice->Bob : hello note several lines end note @enduml 1.12 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice participant0 码力 | 146 页 | 1.91 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.6)@enduml PlantUML 语言参考指引 (1.2019.6) 8 / 173 1.11 给消息添加注释 1 时序图 1.11 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 你也可以通过使用 end note 来添加多行注释。 @startuml Alice->Bob : hello note left: this is 语言参考指引 (1.2019.6) 9 / 173 1.12 其他的注释 1 时序图 1.12 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice hello ref over Bob This can be on several lines end ref @enduml 1.17 延迟 你可以使用... 来表示延迟,并且还可以给延迟添加注释。 @startuml PlantUML 语言参考指引 (1.2019.6) 13 / 173 1.18 空间 1 时序图 Alice -> Bob: Authentication Request0 码力 | 174 页 | 1.98 MB | 1 年前3
PlantUML 1.2019.3 语言参考指引@enduml PlantUML 语言参考指引 (1.2019.3) 8 / 156 1.11 给消息添加注释 1 时序图 1.11 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 你也可以通过使用 end note 来添加多行注释。 @startuml Alice->Bob : hello note left: this is 语言参考指引 (1.2019.3) 9 / 156 1.12 其他的注释 1 时序图 1.12 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice hello ref over Bob This can be on several lines end ref @enduml 1.17 延迟 你可以使用... 来表示延迟,并且还可以给延迟添加注释。 @startuml PlantUML 语言参考指引 (1.2019.3) 13 / 156 1.18 空间 1 时序图 Alice -> Bob: Authentication Request0 码力 | 157 页 | 1.78 MB | 1 年前3
PlantUML 1.2019.2 语言参考指引@enduml PlantUML 语言参考指引 (1.2019.2) 8 / 156 1.11 给消息添加注释 1 时序图 1.11 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 你也可以通过使用 end note 来添加多行注释。 @startuml Alice->Bob : hello note left: this is 语言参考指引 (1.2019.2) 9 / 156 1.12 其他的注释 1 时序图 1.12 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice hello ref over Bob This can be on several lines end ref @enduml 1.17 延迟 你可以使用... 来表示延迟,并且还可以给延迟添加注释。 @startuml PlantUML 语言参考指引 (1.2019.2) 13 / 156 1.18 空间 1 时序图 Alice -> Bob: Authentication Request0 码力 | 157 页 | 1.78 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.4)@enduml PlantUML 语言参考指引 (1.2019.4) 8 / 164 1.11 给消息添加注释 1 时序图 1.11 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 你也可以通过使用 end note 来添加多行注释。 @startuml Alice->Bob : hello note left: this is 语言参考指引 (1.2019.4) 9 / 164 1.12 其他的注释 1 时序图 1.12 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice hello ref over Bob This can be on several lines end ref @enduml 1.17 延迟 你可以使用... 来表示延迟,并且还可以给延迟添加注释。 @startuml PlantUML 语言参考指引 (1.2019.4) 13 / 164 1.18 空间 1 时序图 Alice -> Bob: Authentication Request0 码力 | 165 页 | 1.89 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2023.11)结束记录攻击日志 end @enduml [参看 QA-2503] 1.14 注释信息 可以使用 note left 或 note right 关键字在信息后面加上注释。 PlantUML 语言参考指引 (1.2023.11) 12 / 538 1.15 其他的注释信息方式 1 序列图 你可以使用 end note 关键字有一个多行注释。 @startuml Alice->Bob : hello note several lines end note @enduml 1.15 其他的注释信息方式 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice participant hello ref over Bob This can be on several lines end ref @enduml 1.22 延迟 你可以使用... 来表示延迟,并且还可以给延迟添加注释。 @startuml Alice -> Bob: 认证请求 ... PlantUML 语言参考指引 (1.2023.11) 18 / 538 1.23 文本换行 1 序列图 Bob -->0 码力 | 539 页 | 7.74 MB | 1 年前3
PlantUML 1.2020.22 语言参考指引loop • par • break • critical • group, 后面紧跟着消息内容 PlantUML 语言参考指引 (1.2020.22) 8 / 294 1.12 给消息添加注释 1 时序图 可以在标头 (header) 添加需要显示的文字 (group 除外)。 关键词 end 用来结束分组。 注意,分组可以嵌套使用。 @startuml Alice -> Bob: repeat end @enduml 1.12 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 你也可以通过使用 end note 来添加多行注释。 @startuml PlantUML 语言参考指引 (1.2020.22) 9 / 294 1.13 其他的注释 1 时序图 Alice->Bob : hello note several lines end note @enduml 1.13 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice participant0 码力 | 295 页 | 3.08 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2020.23)header. @startuml Alice -> Bob: Authentication Request PlantUML 语言参考指引 (1.2020.23) 9 / 306 1.13 给消息添加注释 1 时序图 Bob -> Alice: Authentication Failure group My own label [My own label 2] Alice -> Log : Log Log : Log attack end end @enduml [Ref. QA-2503] 1.13 给消息添加注释 我们可以通过在消息后面添加 note left 或者 note right 关键词来给消息添加注释。 你也可以通过使用 end note 来添加多行注释。 @startuml Alice->Bob : hello note left: this is a first note (1.2020.23) 10 / 306 1.14 其他的注释 1 时序图 1.14 其他的注释 可以使用 note left of,note right of 或 note over 在节点 (participant) 的相对位置放置注释。 还可以通过修改背景色来高亮显示注释。 以及使用关键字 end note 来添加多行注释。 @startuml participant Alice0 码力 | 307 页 | 3.17 MB | 1 年前3
2.1 gofmt 的文化演变当越多人思考他们自己的格式风格的时候,他们就变得更加固执于此了 错误的结论:自动格式器必须要有很多选项! 但是有很多选项的格式器其实违背他们的目的 此外,支持很多选项是难的 尊重用户的想法是最关键的 处理注释是很难的 语言本身也会增加很多额外的复杂度(比如,C的宏) 4/21/2015 gofmt 的文化演变 http://127.0.0.1:3999/gofmt-cn.slide#1 7/34 4/21/2015 gofmt 的文化演变 http://127.0.0.1:3999/gofmt-cn.slide#1 9/34 gofmt的基本结构 源代码的处理 基本的格式化 附加:注释的处理 完善:代码和注释的对齐 但是,没有牛X的通用布局算法 相反的:基于节点的精细优化 4/21/2015 gofmt 的文化演变 http://127.0.0.1:3999/gofmt-cn.slide#1 4/21/2015 gofmt 的文化演变 http://127.0.0.1:3999/gofmt-cn.slide#1 13/34 注释的处理 注释可以出现在程序的任何两个词汇之间. 通常情况下,不能很明显的知道注释属于哪个 AST 节点. 注释经常是成组出现: // A CommentGroup represents a sequence of comments // with no0 码力 | 34 页 | 9.97 MB | 1 年前3
共 251 条
- 1
- 2
- 3
- 4
- 5
- 6
- 26













