Kaynağa Gözat

add name and version

fancl 1 yıl önce
ebeveyn
işleme
eb4c287da0
1 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  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