软件包scm为多个源代码管理系统(包括GitHub,GitHub Enterprise,Bitbucket,Bitbucket Server,Gita和Gogs)提供了统一的界面。 入门 创建一个GitHub客户端: package main import ( "github.com/drone/go-scm/scm" "github.com/drone/go-scm/scm/driver/github" ) func main () { client := github . NewDefault () } 创建一个GitHub Enterprise客户端: import ( "github.com/drone/go-scm/scm" "github.com/drone/go-scm/scm/driver/github" ) func main () { clien