aboutsummaryrefslogtreecommitdiff
path: root/ref/symbolic.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 10:41:42 +0800
committerGravatar Runxi Yu2026-03-06 10:41:42 +0800
commitfaf52136c464a269041ce4d1e93574638b2b95a2 (patch)
treeee6c0534d3666c09cfbad7faa20c8db1b01dadc9 /ref/symbolic.go
parentREADME: Update todo list (diff)
signatureNo signature
ref: Split files
Diffstat (limited to 'ref/symbolic.go')
-rw-r--r--ref/symbolic.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/ref/symbolic.go b/ref/symbolic.go
new file mode 100644
index 00000000..af9f9e84
--- /dev/null
+++ b/ref/symbolic.go
@@ -0,0 +1,14 @@
+package ref
+
+// Symbolic points to another reference name.
+type Symbolic struct {
+ RefName string
+ Target string
+}
+
+// Name returns the fully-qualified reference name.
+func (ref Symbolic) Name() string {
+ return ref.RefName
+}
+
+func (Symbolic) isRef() {}