소스 검색

add name and version

fancl 1 년 전
부모
커밋
eb4c287da0
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      instance.go

+ 10 - 0
instance.go

@@ -40,6 +40,16 @@ func Http() *http.Server {
 	return std.Http()
 }
 
+func Name() string {
+	initApplication()
+	return std.opts.Name
+}
+
+func Version() string {
+	initApplication()
+	return std.opts.Version
+}
+
 func Debug() bool {
 	initApplication()
 	return std.opts.EnableDebug