๐Ÿš€ Grammar-Aware Code Formatter: Structure through separation (supports Go, JavaScript, TypeScript, JSX, and TSX)
go formatter code-formatter javascript typescript jsx tsx
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: Add Nix flake support

Fuwn 1d3e5268 3b4177fd

+102 -2
+1
.gitignore
··· 1 1 iku 2 + result
+6
README.md
··· 25 25 go install github.com/Fuwn/iku@latest 26 26 ``` 27 27 28 + Or run with Nix: 29 + 30 + ```bash 31 + nix run github:Fuwn/iku 32 + ``` 33 + 28 34 ## Usage 29 35 30 36 ```bash
+58
flake.lock
··· 1 + { 2 + "nodes": { 3 + "flake-utils": { 4 + "inputs": { 5 + "systems": "systems" 6 + }, 7 + "locked": { 8 + "lastModified": 1731533236, 9 + "owner": "numtide", 10 + "repo": "flake-utils", 11 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 12 + "type": "github" 13 + }, 14 + "original": { 15 + "owner": "numtide", 16 + "repo": "flake-utils", 17 + "type": "github" 18 + } 19 + }, 20 + "nixpkgs": { 21 + "locked": { 22 + "lastModified": 1769740369, 23 + "owner": "NixOS", 24 + "repo": "nixpkgs", 25 + "rev": "6308c3b21396534d8aaeac46179c14c439a89b8a", 26 + "type": "github" 27 + }, 28 + "original": { 29 + "owner": "NixOS", 30 + "ref": "nixpkgs-unstable", 31 + "repo": "nixpkgs", 32 + "type": "github" 33 + } 34 + }, 35 + "root": { 36 + "inputs": { 37 + "flake-utils": "flake-utils", 38 + "nixpkgs": "nixpkgs" 39 + } 40 + }, 41 + "systems": { 42 + "locked": { 43 + "lastModified": 1681028828, 44 + "owner": "nix-systems", 45 + "repo": "default", 46 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 47 + "type": "github" 48 + }, 49 + "original": { 50 + "owner": "nix-systems", 51 + "repo": "default", 52 + "type": "github" 53 + } 54 + } 55 + }, 56 + "root": "root", 57 + "version": 7 58 + }
+35
flake.nix
··· 1 + { 2 + description = "Grammar-Aware Go Formatter"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 6 + flake-utils.url = "github:numtide/flake-utils"; 7 + }; 8 + 9 + outputs = { self, nixpkgs, flake-utils, ... }: 10 + flake-utils.lib.eachDefaultSystem (system: 11 + let 12 + pkgs = import nixpkgs { inherit system; }; 13 + version = self.shortRev or "dirty"; 14 + in { 15 + packages.default = pkgs.buildGo125Module { 16 + inherit version; 17 + 18 + pname = "iku"; 19 + src = pkgs.lib.cleanSource ./.; 20 + vendorHash = null; 21 + ldflags = [ "-s" "-w" "-X main.version=${version}" ]; 22 + 23 + meta = with pkgs.lib; { 24 + description = "Grammar-Aware Go Formatter"; 25 + homepage = "https://github.com/Fuwn/iku"; 26 + license = licenses.gpl3Only; 27 + platforms = platforms.unix; 28 + }; 29 + }; 30 + 31 + devShells.default = pkgs.mkShell { 32 + buildInputs = [ pkgs.go_1_25 ]; 33 + }; 34 + }); 35 + }
+1 -1
go.mod
··· 1 1 module github.com/Fuwn/iku 2 2 3 - go 1.25.6 3 + go 1.25
+1 -1
main.go
··· 31 31 flag.Parse() 32 32 33 33 if *versionFlag { 34 - fmt.Println("iku", version) 34 + fmt.Printf("%s (%s)\n", version, runtime.Version()) 35 35 os.Exit(0) 36 36 } 37 37