aboutsummaryrefslogtreecommitdiff
path: root/kbbi.go
diff options
context:
space:
mode:
Diffstat (limited to 'kbbi.go')
-rw-r--r--kbbi.go37
1 files changed, 37 insertions, 0 deletions
diff --git a/kbbi.go b/kbbi.go
new file mode 100644
index 0000000..db562f1
--- /dev/null
+++ b/kbbi.go
@@ -0,0 +1,37 @@
+// 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 kbbi is Go client for Kamus Besar Bahasa Indonesia at
+// kbbi.kemdikbud.go.id.
+//
+package kbbi
+
+const (
+ hostname = "kbbi.kemdikbud.go.id"
+ baseURL = "https://" + hostname
+ loginURL = baseURL + "/Account/Login"
+ entriURL = "/entri/"
+
+ attrNameHref = "href"
+ attrNameName = "name"
+ attrNameValue = "value"
+
+ headerNameContentType = "Content-Type"
+ headerValueContentType = "application/x-www-form-urlencoded"
+
+ elementTypeAnchor = "a"
+ elementTypeInput = "input"
+
+ paramNameIngatSaya = "IngatSaya"
+ paramNameKataSandi = "KataSandi"
+ paramNameMasukan = "masukan"
+ paramNameMasukanLengkap = "masukanLengkap"
+ paramNamePage = "page"
+ paramNamePosel = "Posel"
+ paramNameRequestVerificationToken = "__RequestVerificationToken"
+
+ paramValueDasar = "dasar"
+ paramValueFalse = "false"
+)