소스 검색

Add comments to Base type

Jguer 5 년 전
부모
커밋
29b051134a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      depOrder.go

+ 4 - 0
depOrder.go

@@ -6,16 +6,20 @@ import (
 	rpc "github.com/mikkeloscar/aur"
 )
 
+// Base is an AUR base package
 type Base []*rpc.Pkg
 
+// Pkgbase returns the first base package.
 func (b Base) Pkgbase() string {
 	return b[0].PackageBase
 }
 
+// Version returns the first base package version.
 func (b Base) Version() string {
 	return b[0].Version
 }
 
+// URLPath returns the first base package URL.
 func (b Base) URLPath() string {
 	return b[0].URLPath
 }