1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00
advanced-go-programming-book/images/ch2-1-x-ptr-to-y-ptr.plantuml
2018-12-14 21:41:22 +08:00

24 lines
522 B
Plaintext

' Copyright 2017 <chaishushan{AT}gmail.com>. All rights reserved.
' Use of this source code is governed by a Apache
' license that can be found in the LICENSE file.
@startuml
title *X <=> *Y
participant "~*X" as x_ptr
participant unsafe.Pointer as unsafe_Pointer
participant "~*Y" as y_ptr
== *X => *Y ==
x_ptr -> unsafe_Pointer: ~*X to unsafe.Pointer
unsafe_Pointer -> y_ptr: unsafe.Pointer to *Y
== *Y => *X ==
y_ptr -> unsafe_Pointer: ~*Y to unsafe.Pointer
unsafe_Pointer -> x_ptr: unsafe.Pointer to *X
@enduml