aboutsummaryrefslogtreecommitdiff
path: root/kamusku.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-05-30 03:26:34 +0700
committerShulhan <m.shulhan@gmail.com>2020-05-30 03:26:34 +0700
commit734ce643ecbc992834a8f78b44904b82b09bc84b (patch)
treed67aec8f6e0fe922e3bb6c7abc91fb8ad30ee9e7 /kamusku.go
parent6b03e4fd9670f865216a773545ea4a0bbf534582 (diff)
downloadkamusku-734ce643ecbc992834a8f78b44904b82b09bc84b.tar.xz
all: rename the module to "kamusku"
Diffstat (limited to 'kamusku.go')
-rw-r--r--kamusku.go52
1 files changed, 52 insertions, 0 deletions
diff --git a/kamusku.go b/kamusku.go
new file mode 100644
index 0000000..151d85d
--- /dev/null
+++ b/kamusku.go
@@ -0,0 +1,52 @@
+// Copyright 2020, Shulhan <m.shulhan@gmail.com>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//
+// Package kamusku is Go client for Kamus Besar Bahasa Indonesia at
+// kbbi.kemdikbud.go.id.
+//
+package kamusku
+
+import "time"
+
+const (
+ hostname = "kbbi.kemdikbud.go.id"
+ baseURL = "https://" + hostname
+ loginURL = baseURL + "/Account/Login"
+ entriPath = "/entri/"
+
+ defServerAPI = "https://kamuskubot.df.r.appspot.com"
+ envPort = "PORT"
+ pathAPIDefinisi = "/api/definisi"
+
+ attrNameClass = "class"
+ attrNameHref = "href"
+ attrNameTitle = "title"
+ attrNameValue = "value"
+
+ attrValueRootWord = "rootword"
+
+ tagNameAnchor = "a"
+ tagNameFont = "font"
+ tagNameHeader2 = "h2"
+ tagNameInput = "input"
+ tagNameItalic = "i"
+ tagNameOrderedList = "ol"
+ tagNameSpan = "span"
+ tagNameUnorderedList = "ul"
+
+ paramNameIngatSaya = "IngatSaya"
+ paramNameKata = "kata"
+ paramNameKataSandi = "KataSandi"
+ paramNameMasukan = "masukan"
+ paramNameMasukanLengkap = "masukanLengkap"
+ paramNamePage = "page"
+ paramNamePosel = "Posel"
+ paramNameRequestVerificationToken = "__RequestVerificationToken" //nolint: gosec
+
+ paramValueDasar = "dasar"
+ paramValueFalse = "false"
+
+ defTimeout = 20 * time.Second
+)